ostruct2 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +7 -0
  2. data/.index +63 -0
  3. data/LICENSE.txt +22 -0
  4. data/lib/ostruct2.rb +3 -1
  5. metadata +36 -29
  6. data/.ruby +0 -63
  7. data/Config.rb +0 -73
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2fcf09b23ed91b91870fd515a64e7fa44513464f
4
+ data.tar.gz: 4327a077dd669964cce47f54ff49bfb316fe2868
5
+ SHA512:
6
+ metadata.gz: f59e6b32d413ceca9db6d1a0b9bc04cf0fc169d3772807ad3e90d5f06de216529e0ad2cb96aef7006ff2b16b83f78488a0becd898f2f31b3ab9142ed750a9230
7
+ data.tar.gz: bd98053d03cf7ce9e78707c03362a68f3bd5c576c7e5960fc149cfc956710cccf30a2281856e824eb89d5c665df1aeb52d841b322e274c8d9d94d0584cdfdb29
data/.index ADDED
@@ -0,0 +1,63 @@
1
+ ---
2
+ revision: 2013
3
+ type: ruby
4
+ sources:
5
+ - var
6
+ authors:
7
+ - name: Trans
8
+ email: transfire@gmail.com
9
+ organizations: []
10
+ requirements:
11
+ - groups:
12
+ - build
13
+ development: true
14
+ name: detroit
15
+ - groups:
16
+ - test
17
+ development: true
18
+ name: qed
19
+ - groups:
20
+ - test
21
+ development: true
22
+ name: ae
23
+ conflicts: []
24
+ alternatives: []
25
+ resources:
26
+ - type: home
27
+ uri: http://rubyworks.github.com/ostruct2
28
+ label: Homepage
29
+ - type: docs
30
+ uri: http://rubydoc.info/gems/ostruct2/frames
31
+ label: Documentation
32
+ - type: code
33
+ uri: http://github.com/rubyworks/ostruct2
34
+ label: Source Code
35
+ - type: mail
36
+ uri: http://groups.google.com/group/rubyworks-mailinglist
37
+ label: Mailing List
38
+ - type: chat
39
+ uri: http://chat.us.freenode.net/rubyworks
40
+ label: IRC Channel
41
+ repositories:
42
+ - name: upstream
43
+ scm: git
44
+ uri: git://github.com/rubyworks/ostruct2.git
45
+ categories: []
46
+ copyrights:
47
+ - holder: Rubyworks
48
+ year: '2010'
49
+ license: BSD-2-Clause
50
+ customs: []
51
+ paths:
52
+ lib:
53
+ - lib
54
+ name: ostruct2
55
+ title: OStruct2
56
+ summary: A Better OpenStruct
57
+ created: '2010-04-21'
58
+ description: |-
59
+ OStruct2 is a reimplementation of Ruby's standard ostruct.rb library.
60
+ This new OpenStruct class addresses issues the original has with conflicting
61
+ member names and cloning.
62
+ version: 0.2.1
63
+ date: '2013-11-21'
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ (BSD-2-Clause License)
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are met:
5
+
6
+ 1. Redistributions of source code must retain the above copyright notice,
7
+ this list of conditions and the following disclaimer.
8
+
9
+ 2. Redistributions in binary form must reproduce the above copyright
10
+ notice, this list of conditions and the following disclaimer in the
11
+ documentation and/or other materials provided with the distribution.
12
+
13
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
14
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
15
+ FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
16
+ COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
17
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
20
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
21
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
22
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/lib/ostruct2.rb CHANGED
@@ -322,7 +322,9 @@ class OpenStruct2 < BasicObject
322
322
  # @return [Enumerator]
323
323
  #
324
324
  def to_enum
325
- ::Enumerator.new(self, :each!)
325
+ # Why has Ruby 2 deprecated this form?
326
+ #::Enumerator.new(self, :each!)
327
+ ::Kernel.instance_method(:to_enum).bind(self).call(:each!)
326
328
  end
327
329
 
328
330
  #
metadata CHANGED
@@ -1,93 +1,100 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ostruct2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Trans
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-05-23 00:00:00.000000000 Z
11
+ date: 2013-11-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: detroit
16
- requirement: &22522480 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *22522480
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: qed
27
- requirement: &22521760 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *22521760
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: ae
38
- requirement: &22521140 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - '>='
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *22521140
47
- description: ! 'OStruct2 is a reimplementation of Ruby''s standard ostruct.rb library.
48
-
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: |-
56
+ OStruct2 is a reimplementation of Ruby's standard ostruct.rb library.
49
57
  This new OpenStruct class addresses issues the original has with conflicting
50
-
51
- member names and cloning.'
58
+ member names and cloning.
52
59
  email:
53
60
  - transfire@gmail.com
54
61
  executables: []
55
62
  extensions: []
56
63
  extra_rdoc_files:
57
- - HISTORY.rdoc
64
+ - LICENSE.txt
58
65
  - README.rdoc
66
+ - HISTORY.rdoc
59
67
  - DEMO.md
60
68
  files:
61
- - .ruby
69
+ - .index
62
70
  - lib/ostruct2/ostruct.rb
63
71
  - lib/ostruct2.rb
64
- - HISTORY.rdoc
65
72
  - README.rdoc
73
+ - HISTORY.rdoc
66
74
  - DEMO.md
67
- - Config.rb
75
+ - LICENSE.txt
68
76
  homepage: http://rubyworks.github.com/ostruct2
69
77
  licenses:
70
78
  - BSD-2-Clause
79
+ metadata: {}
71
80
  post_install_message:
72
81
  rdoc_options: []
73
82
  require_paths:
74
83
  - lib
75
84
  required_ruby_version: !ruby/object:Gem::Requirement
76
- none: false
77
85
  requirements:
78
- - - ! '>='
86
+ - - '>='
79
87
  - !ruby/object:Gem::Version
80
88
  version: '0'
81
89
  required_rubygems_version: !ruby/object:Gem::Requirement
82
- none: false
83
90
  requirements:
84
- - - ! '>='
91
+ - - '>='
85
92
  - !ruby/object:Gem::Version
86
93
  version: '0'
87
94
  requirements: []
88
95
  rubyforge_project:
89
- rubygems_version: 1.8.11
96
+ rubygems_version: 2.0.3
90
97
  signing_key:
91
- specification_version: 3
98
+ specification_version: 4
92
99
  summary: A Better OpenStruct
93
100
  test_files: []
data/.ruby DELETED
@@ -1,63 +0,0 @@
1
- ---
2
- source:
3
- - meta
4
- authors:
5
- - name: Trans
6
- email: transfire@gmail.com
7
- copyrights:
8
- - holder: Rubyworks
9
- year: '2010'
10
- license: BSD-2-Clause
11
- requirements:
12
- - name: detroit
13
- groups:
14
- - build
15
- development: true
16
- - name: qed
17
- groups:
18
- - test
19
- development: true
20
- - name: ae
21
- groups:
22
- - test
23
- development: true
24
- dependencies: []
25
- alternatives: []
26
- conflicts: []
27
- repositories:
28
- - uri: git://github.com/rubyworks/ostruct2.git
29
- scm: git
30
- name: upstream
31
- resources:
32
- - uri: http://rubyworks.github.com/ostruct2
33
- label: Website
34
- type: home
35
- - uri: http://rubydoc.info/gems/ostruct2/frames
36
- label: Documentation
37
- type: docs
38
- - uri: http://github.com/rubyworks/ostruct2
39
- label: Source Code
40
- type: code
41
- - uri: http://groups.google.com/group/rubyworks-mailinglist
42
- label: Mailing List
43
- type: mail
44
- - uri: http://chat.us.freenode.net/rubyworks
45
- label: IRC Channel
46
- type: chat
47
- categories: []
48
- extra: {}
49
- load_path:
50
- - lib
51
- revision: 0
52
- created: '2010-04-21'
53
- summary: A Better OpenStruct
54
- title: OStruct2
55
- version: 0.2.0
56
- name: ostruct2
57
- description: ! 'OStruct2 is a reimplementation of Ruby''s standard ostruct.rb library.
58
-
59
- This new OpenStruct class addresses issues the original has with conflicting
60
-
61
- member names and cloning.'
62
- organization: Rubyworks
63
- date: '2012-05-23'
data/Config.rb DELETED
@@ -1,73 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- #
4
- # QED test coverage report using SimpleCov.
5
- #
6
- # Use `$properties.coverage_folder` to set directory in which to store
7
- # coverage report this defaults to `log/coverage`.
8
- #
9
- # IMPORTANT! Unfortunately this will not give us a reliable report
10
- # b/c QED uses the RC gem, so SimpleCov can't differentiate the two.
11
- #
12
- config 'qed', profile: 'cov' do
13
- #puts "QED w/coverage!"
14
- dir = $properties.coverage_folder
15
- require 'simplecov'
16
- SimpleCov.command_name 'QED'
17
- SimpleCov.start do
18
- coverage_dir(dir || 'log/coverage')
19
- #add_group "Label", "lib/qed/directory"
20
- end
21
- end
22
-
23
- #
24
- # Pry
25
- #
26
- config 'pry' do
27
- puts "RC on Pry!"
28
- $LOAD_PATH.unshift('lib')
29
- end
30
-
31
- #
32
- # Rake tasks
33
- #
34
- config 'rake' do
35
- desc 'run unit tests'
36
- task 'test' do
37
- sh 'qed'
38
- end
39
- end
40
-
41
- =begin
42
- #
43
- # Detroit assembly.
44
- #
45
- config 'detroit' do
46
- service :email do |s|
47
- s.mailto = ['ruby-talk@ruby-lang.org',
48
- 'rubyworks-mailinglist@googlegroups.com']
49
- end
50
-
51
- service :gem do |s|
52
- s.gemspec = 'pkg/ostruct2.gemspec'
53
- end
54
-
55
- service :github do |s|
56
- s.folder = 'web'
57
- end
58
-
59
- service :dnote do |s|
60
- s.title = 'Source Notes'
61
- s.output = 'log/notes.html'
62
- end
63
-
64
- service :locat do |s|
65
- s.output = 'log/locat.html'
66
- end
67
-
68
- service :vclog do |s|
69
- s.output = ['log/history.html',
70
- 'log/changes.html']
71
- end
72
- end
73
- =end