at 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/Gemfile.lock +2 -6
  2. data/Rakefile +8 -7
  3. data/VERSION +1 -1
  4. data/at.gemspec +13 -10
  5. metadata +23 -39
  6. data/.yardoc/checksums +0 -2
@@ -1,16 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- at (0.1.2)
5
- active_support (~> 3.0.0)
6
- meta_tools (~> 0.2.7)
4
+ at (0.1.3)
7
5
  version (~> 1.0.0)
8
6
 
9
7
  GEM
10
8
  remote: http://rubygems.org/
11
9
  specs:
12
- active_support (3.0.0)
13
- activesupport (= 3.0.0)
14
10
  activesupport (3.0.0)
15
11
  coderay (1.0.8)
16
12
  diff-lcs (1.1.3)
@@ -32,7 +28,6 @@ GEM
32
28
  yard (>= 0.7.0)
33
29
  listen (0.6.0)
34
30
  lumberjack (1.0.2)
35
- meta_tools (0.2.7)
36
31
  method_source (0.8.1)
37
32
  pry (0.9.10)
38
33
  coderay (~> 1.0.5)
@@ -59,6 +54,7 @@ PLATFORMS
59
54
  ruby
60
55
 
61
56
  DEPENDENCIES
57
+ activesupport (~> 3)
62
58
  at!
63
59
  fuubar (~> 1.1)
64
60
  github-markup (~> 0.7)
data/Rakefile CHANGED
@@ -13,24 +13,25 @@ end
13
13
  spec = Gem::Specification.new do |s|
14
14
 
15
15
  # Variables
16
- s.name = 'at'
17
- s.author = 'Ryan Scott Lewis'
18
- s.email = 'ryan@rynet.us'
19
- s.summary = 'Easily access instance variables on your objects as if they were attributes.'
16
+ s.name = 'at'
17
+ s.author = 'Ryan Scott Lewis'
18
+ s.email = 'ryan@rynet.us'
19
+ s.summary = 'Easily access instance variables on your objects as if they were attributes.'
20
+ s.description = 'Make instance variables accessible for testing purposes.'
20
21
 
21
22
  # Dependencies
22
- s.add_dependency 'version', '~> 1.0.0'
23
+ s.add_dependency 'version', '~> 1.0'
24
+ s.add_development_dependency 'activesupport', '~> 3.2'
23
25
  s.add_development_dependency 'guard-rspec', '~> 2.1'
24
26
  s.add_development_dependency 'guard-yard', '~> 2.0'
25
27
  s.add_development_dependency 'rb-fsevent', '~> 0.9'
26
28
  s.add_development_dependency 'fuubar', '~> 1.1'
27
- s.add_development_dependency 'redcarpet', '~> 2.2.2'
29
+ s.add_development_dependency 'redcarpet', '~> 2.2'
28
30
  s.add_development_dependency 'github-markup', '~> 0.7'
29
31
 
30
32
  # Pragmatically set variables
31
33
  s.homepage = "http://github.com/RyanScottLewis/#{s.name}"
32
34
  s.version = Pathname.glob('VERSION*').first.read
33
- s.description = Pathname.glob('README*').first.read
34
35
  s.require_paths = ['lib']
35
36
  s.files = `git ls-files`.lines.to_a.collect { |s| s.strip }
36
37
  s.executables = `git ls-files -- bin/*`.lines.to_a.collect { |s| File.basename(s.strip) }
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/at.gemspec CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "at"
5
- s.version = "0.1.3"
5
+ s.version = "0.1.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ryan Scott Lewis"]
9
- s.date = "2012-11-24"
10
- s.description = "# At\n\n`At` is a small library that allows you to access instance variables on an object as \nif they were `attr_accessor`s for testing purposes.\n\nBasically, `at` directly translates this:\n\n```ruby\nvalue = object.instance_eval { @instance_variable }\nobject.instance_eval { @instance_variable = \"\#{value}!\" }\n```\n\ninto this:\n\n```ruby\nvalue = object.at.instance_variable\nobject.at.instance_variable = \"\#{value}!\"\n```\n\n## Install\n\n### Bundler: `gem 'at'`\n\n### RubyGems: `gem install at`\n\n## Usage\n\nIf I want to test the output of the `full_name` method in my `User` class\nbelow, I would normally have three options for testing all possible outcomes; \ninitialize a `User` object for each test case, initialize one `User` object and \nuse `instance_eval` to set the instance variables individually, or create \n`attr_accessor`s for each instance variable I would like to test. In Rspec, I \ncan use `assigns` to test the value of the instance variable, but I can't \n_get_ the value of the instance variable.\n\n`At` solves these problems.\n\n```ruby\nrequire 'at'\n\nclass User\n def initialize(first_name=nil, last_name=nil)\n @first_name, @last_name = first_name, last_name\n end\n \n def full_name\n [@first_name, @last_name].compact.join(\" \")\n end\nend\n\ndescribe User, '#full_name' do\n it 'should output the full name correctly' do\n subject.at.first_name = 'John'\n subject.at.last_name = 'Doe'\n \n subject.full_name.should == 'John Doe'\n end\nend\n```\n\nCheck out the specs for a better usage example.\n\n## Contributing\n\n* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet\n* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it\n* Fork the project\n* Start a feature/bugfix branch\n* Commit and push until you are happy with your contribution\n* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.\n* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.\n\n## Copyright\n\nCopyright \u{a9} 2012 Ryan Scott Lewis <ryan@rynet.us>.\n\nThe MIT License (MIT) - See LICENSE for further details."
9
+ s.date = "2012-12-11"
10
+ s.description = "Make instance variables accessible for testing purposes."
11
11
  s.email = "ryan@rynet.us"
12
- s.files = [".yardoc/checksums", ".yardoc/object_types", ".yardoc/objects/root.dat", ".yardoc/proxy_types", "Gemfile", "Gemfile.lock", "Guardfile", "LICENSE", "README.md", "Rakefile", "VERSION", "at.gemspec", "lib/at.rb", "lib/at/import.rb", "spec/at_spec.rb", "spec/spec_helper.rb"]
12
+ s.files = [".yardoc/object_types", ".yardoc/objects/root.dat", ".yardoc/proxy_types", "Gemfile", "Gemfile.lock", "Guardfile", "LICENSE", "README.md", "Rakefile", "VERSION", "at.gemspec", "lib/at.rb", "lib/at/import.rb", "spec/at_spec.rb", "spec/spec_helper.rb"]
13
13
  s.homepage = "http://github.com/RyanScottLewis/at"
14
14
  s.require_paths = ["lib"]
15
15
  s.rubygems_version = "1.8.24"
@@ -19,29 +19,32 @@ Gem::Specification.new do |s|
19
19
  s.specification_version = 3
20
20
 
21
21
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
22
- s.add_runtime_dependency(%q<version>, ["~> 1.0.0"])
22
+ s.add_runtime_dependency(%q<version>, ["~> 1.0"])
23
+ s.add_development_dependency(%q<activesupport>, ["~> 3.2"])
23
24
  s.add_development_dependency(%q<guard-rspec>, ["~> 2.1"])
24
25
  s.add_development_dependency(%q<guard-yard>, ["~> 2.0"])
25
26
  s.add_development_dependency(%q<rb-fsevent>, ["~> 0.9"])
26
27
  s.add_development_dependency(%q<fuubar>, ["~> 1.1"])
27
- s.add_development_dependency(%q<redcarpet>, ["~> 2.2.2"])
28
+ s.add_development_dependency(%q<redcarpet>, ["~> 2.2"])
28
29
  s.add_development_dependency(%q<github-markup>, ["~> 0.7"])
29
30
  else
30
- s.add_dependency(%q<version>, ["~> 1.0.0"])
31
+ s.add_dependency(%q<version>, ["~> 1.0"])
32
+ s.add_dependency(%q<activesupport>, ["~> 3.2"])
31
33
  s.add_dependency(%q<guard-rspec>, ["~> 2.1"])
32
34
  s.add_dependency(%q<guard-yard>, ["~> 2.0"])
33
35
  s.add_dependency(%q<rb-fsevent>, ["~> 0.9"])
34
36
  s.add_dependency(%q<fuubar>, ["~> 1.1"])
35
- s.add_dependency(%q<redcarpet>, ["~> 2.2.2"])
37
+ s.add_dependency(%q<redcarpet>, ["~> 2.2"])
36
38
  s.add_dependency(%q<github-markup>, ["~> 0.7"])
37
39
  end
38
40
  else
39
- s.add_dependency(%q<version>, ["~> 1.0.0"])
41
+ s.add_dependency(%q<version>, ["~> 1.0"])
42
+ s.add_dependency(%q<activesupport>, ["~> 3.2"])
40
43
  s.add_dependency(%q<guard-rspec>, ["~> 2.1"])
41
44
  s.add_dependency(%q<guard-yard>, ["~> 2.0"])
42
45
  s.add_dependency(%q<rb-fsevent>, ["~> 0.9"])
43
46
  s.add_dependency(%q<fuubar>, ["~> 1.1"])
44
- s.add_dependency(%q<redcarpet>, ["~> 2.2.2"])
47
+ s.add_dependency(%q<redcarpet>, ["~> 2.2"])
45
48
  s.add_dependency(%q<github-markup>, ["~> 0.7"])
46
49
  end
47
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: at
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-24 00:00:00.000000000 Z
12
+ date: 2012-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: version
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.0.0
21
+ version: '1.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,23 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 1.0.0
29
+ version: '1.0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: activesupport
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '3.2'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.2'
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: guard-rspec
32
48
  requirement: !ruby/object:Gem::Requirement
@@ -98,7 +114,7 @@ dependencies:
98
114
  requirements:
99
115
  - - ~>
100
116
  - !ruby/object:Gem::Version
101
- version: 2.2.2
117
+ version: '2.2'
102
118
  type: :development
103
119
  prerelease: false
104
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -106,7 +122,7 @@ dependencies:
106
122
  requirements:
107
123
  - - ~>
108
124
  - !ruby/object:Gem::Version
109
- version: 2.2.2
125
+ version: '2.2'
110
126
  - !ruby/object:Gem::Dependency
111
127
  name: github-markup
112
128
  requirement: !ruby/object:Gem::Requirement
@@ -123,41 +139,12 @@ dependencies:
123
139
  - - ~>
124
140
  - !ruby/object:Gem::Version
125
141
  version: '0.7'
126
- description: ! "# At\n\n`At` is a small library that allows you to access instance
127
- variables on an object as \nif they were `attr_accessor`s for testing purposes.\n\nBasically,
128
- `at` directly translates this:\n\n```ruby\nvalue = object.instance_eval { @instance_variable
129
- }\nobject.instance_eval { @instance_variable = \"#{value}!\" }\n```\n\ninto this:\n\n```ruby\nvalue
130
- = object.at.instance_variable\nobject.at.instance_variable = \"#{value}!\"\n```\n\n##
131
- Install\n\n### Bundler: `gem 'at'`\n\n### RubyGems: `gem install at`\n\n## Usage\n\nIf
132
- I want to test the output of the `full_name` method in my `User` class\nbelow, I
133
- would normally have three options for testing all possible outcomes; \ninitialize
134
- a `User` object for each test case, initialize one `User` object and \nuse `instance_eval`
135
- to set the instance variables individually, or create \n`attr_accessor`s for each
136
- instance variable I would like to test. In Rspec, I \ncan use `assigns` to test
137
- the value of the instance variable, but I can't \n_get_ the value of the instance
138
- variable.\n\n`At` solves these problems.\n\n```ruby\nrequire 'at'\n\nclass User\n
139
- \ def initialize(first_name=nil, last_name=nil)\n @first_name, @last_name = first_name,
140
- last_name\n end\n \n def full_name\n [@first_name, @last_name].compact.join(\"
141
- \")\n end\nend\n\ndescribe User, '#full_name' do\n it 'should output the full
142
- name correctly' do\n subject.at.first_name = 'John'\n subject.at.last_name
143
- = 'Doe'\n \n subject.full_name.should == 'John Doe'\n end\nend\n```\n\nCheck
144
- out the specs for a better usage example.\n\n## Contributing\n\n* Check out the
145
- latest master to make sure the feature hasn't been implemented or the bug hasn't
146
- been fixed yet\n* Check out the issue tracker to make sure someone already hasn't
147
- requested it and/or contributed it\n* Fork the project\n* Start a feature/bugfix
148
- branch\n* Commit and push until you are happy with your contribution\n* Make sure
149
- to add tests for it. This is important so I don't break it in a future version unintentionally.\n*
150
- Please try not to mess with the Rakefile, version, or history. If you want to have
151
- your own version, or is otherwise necessary, that is fine, but please isolate to
152
- its own commit so I can cherry-pick around it.\n\n## Copyright\n\nCopyright © 2012
153
- Ryan Scott Lewis <ryan@rynet.us>.\n\nThe MIT License (MIT) - See LICENSE for further
154
- details."
142
+ description: Make instance variables accessible for testing purposes.
155
143
  email: ryan@rynet.us
156
144
  executables: []
157
145
  extensions: []
158
146
  extra_rdoc_files: []
159
147
  files:
160
- - .yardoc/checksums
161
148
  - .yardoc/object_types
162
149
  - .yardoc/objects/root.dat
163
150
  - .yardoc/proxy_types
@@ -185,9 +172,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
172
  - - ! '>='
186
173
  - !ruby/object:Gem::Version
187
174
  version: '0'
188
- segments:
189
- - 0
190
- hash: -289485452469304833
191
175
  required_rubygems_version: !ruby/object:Gem::Requirement
192
176
  none: false
193
177
  requirements:
@@ -1,2 +0,0 @@
1
- lib/at.rb e11ceaf9a71f33392d3c8265db5511ae25244042
2
- lib/at/import.rb 86d5fbbf9e5761b288d6b6eeb104739dc50bae47