@@ -23,31 +23,46 @@ def annotated_string |
23 | 23 | # This is another comment |
24 | 24 |
|
25 | 25 | # The bundler gem - my own comment |
26 | | -################################################################################ |
27 | | -# Name: bundler |
28 | | -# Description: Bundler manages an application's dependencies through its entire life, across many machines, systematically and repeatably |
29 | | -# Homepage: http://bundler.io |
30 | | -# Source: http://github.com/carlhuda/bundler/ |
31 | | -# Documentation: http://gembundler.com |
32 | | -################################################################################ |
| 26 | +#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~ |
| 27 | +#~# |
| 28 | +#~# bundler: |
| 29 | +#~# |
| 30 | +#~# Bundler manages an application's dependencies through its entire life, across many machines, systematically and repeatably |
| 31 | +#~# |
| 32 | +#~# Homepage: http://bundler.io |
| 33 | +#~# Source: http://github.com/carlhuda/bundler/ |
| 34 | +#~# Documentation: http://gembundler.com |
| 35 | +#~# |
| 36 | +#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~ |
| 37 | +#~# |
33 | 38 | gem 'bundler' |
34 | 39 |
|
35 | | -################################################################################ |
36 | | -# Name: rspec |
37 | | -# Description: BDD for Ruby |
38 | | -# Homepage: http://github.com/rspec |
39 | | -# Source: http://github.com/rspec/rspec |
40 | | -# Documentation: http://relishapp.com/rspec |
41 | | -################################################################################ |
| 40 | +#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~ |
| 41 | +#~# |
| 42 | +#~# rspec: |
| 43 | +#~# |
| 44 | +#~# BDD for Ruby |
| 45 | +#~# |
| 46 | +#~# Homepage: http://github.com/rspec |
| 47 | +#~# Source: http://github.com/rspec/rspec |
| 48 | +#~# Documentation: http://relishapp.com/rspec |
| 49 | +#~# |
| 50 | +#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~ |
| 51 | +#~# |
42 | 52 | gem 'rspec' # Rspec gem |
43 | 53 |
|
44 | | -################################################################################ |
45 | | -# Name: rails |
46 | | -# Description: Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration. |
47 | | -# Homepage: http://www.rubyonrails.org |
48 | | -# Source: http://github.com/rails/rails |
49 | | -# Documentation: http://api.rubyonrails.org |
50 | | -################################################################################ |
| 54 | +#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~ |
| 55 | +#~# |
| 56 | +#~# rails: |
| 57 | +#~# |
| 58 | +#~# Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration. |
| 59 | +#~# |
| 60 | +#~# Homepage: http://www.rubyonrails.org |
| 61 | +#~# Source: http://github.com/rails/rails |
| 62 | +#~# Documentation: http://api.rubyonrails.org |
| 63 | +#~# |
| 64 | +#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~ |
| 65 | +#~# |
51 | 66 | gem 'rails', require: 'rails', branch: 'develop' # With options |
52 | 67 | EOL |
53 | 68 | end |
@@ -103,11 +118,11 @@ module Gemtastic |
103 | 118 |
|
104 | 119 | describe ".gem_string?" do |
105 | 120 | it "should return true for: gem 'something'" do |
106 | | - expect(Gem.gem_string?('gem: "something"')).to be true |
| 121 | + expect(Gem.gem_string?('gem "something"')).to be true |
107 | 122 | end |
108 | 123 |
|
109 | 124 | it 'should return false for: xgem "something"' do |
110 | | - expect(Gem.gem_string?('xgem: "something"')).to be false |
| 125 | + expect(Gem.gem_string?('xgem "something"')).to be false |
111 | 126 | end |
112 | 127 | end |
113 | 128 |
|
@@ -171,13 +186,18 @@ module Gemtastic |
171 | 186 | describe "#to_s" do |
172 | 187 | it "should have the proper fields" do |
173 | 188 | expect(annotation.to_s).to eq <<-EOL.chomp |
174 | | -################################################################################ |
175 | | -# Name: bundler |
176 | | -# Description: Bundler manages an application's dependencies through its entire life, across many machines, systematically and repeatably |
177 | | -# Homepage: http://bundler.io |
178 | | -# Source: http://github.com/carlhuda/bundler/ |
179 | | -# Documentation: http://gembundler.com |
180 | | -################################################################################ |
| 189 | +#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~ |
| 190 | +#~# |
| 191 | +#~# bundler: |
| 192 | +#~# |
| 193 | +#~# Bundler manages an application's dependencies through its entire life, across many machines, systematically and repeatably |
| 194 | +#~# |
| 195 | +#~# Homepage: http://bundler.io |
| 196 | +#~# Source: http://github.com/carlhuda/bundler/ |
| 197 | +#~# Documentation: http://gembundler.com |
| 198 | +#~# |
| 199 | +#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~ |
| 200 | +#~# |
181 | 201 | EOL |
182 | 202 | end |
183 | 203 | end |
|