string_proc 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/string_proc.rb +3 -3
  3. metadata +50 -11
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a6e35d687a58b3a6a2cac243f48d2e21a71aa83e
4
+ data.tar.gz: f9f5c8cbcd28464bf57156b01dc076d70fed066c
5
+ SHA512:
6
+ metadata.gz: b84afd9001e46c3ec7b028cbf85ba3a2c53865fb96f547426b9bab4dfcf93cbe461e0d518e4585dd039449184b05223a1b925bb6659f25bf6a8ece3b80d2c89a
7
+ data.tar.gz: d58ffd8f8e7f5d7e16ade2af8e29591edccdafa4794d8c896326a29b0730df2b37297e69a7fb5d06d357c974be1637b0dba7fd559f9cf0b09b55dd6d1f8a510e
data/lib/string_proc.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  class String
2
2
  @@proc_separator ||= '.'
3
3
 
4
- def self.proc_separator=(string)
5
- @@proc_separator = string.to_s
4
+ def self.proc_separator=(separator_string)
5
+ @@proc_separator = separator_string
6
6
  end
7
7
 
8
8
  def to_proc
9
9
  proc {|object| split(@@proc_separator).inject(object) {|obj, cmd| obj.send(cmd) } }
10
10
  end
11
- end
11
+ end
metadata CHANGED
@@ -1,16 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_proc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Aaron Rosenberg
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-07-04 00:00:00.000000000 Z
13
- dependencies: []
11
+ date: 2014-02-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.0.0
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '2.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 2.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: simplecov
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.8'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 0.8.0
43
+ type: :development
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '0.8'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 0.8.0
14
53
  description: Adds the to_proc method to the string class.
15
54
  email: aarongrosenberg@gmail.com
16
55
  executables: []
@@ -19,27 +58,27 @@ extra_rdoc_files: []
19
58
  files:
20
59
  - lib/string_proc.rb
21
60
  homepage: https://github.com/LtCmdDudefellah/string_proc
22
- licenses: []
61
+ licenses:
62
+ - MIT
63
+ metadata: {}
23
64
  post_install_message:
24
65
  rdoc_options: []
25
66
  require_paths:
26
67
  - lib
27
68
  required_ruby_version: !ruby/object:Gem::Requirement
28
- none: false
29
69
  requirements:
30
- - - ! '>='
70
+ - - ">="
31
71
  - !ruby/object:Gem::Version
32
72
  version: '0'
33
73
  required_rubygems_version: !ruby/object:Gem::Requirement
34
- none: false
35
74
  requirements:
36
- - - ! '>='
75
+ - - ">="
37
76
  - !ruby/object:Gem::Version
38
77
  version: '0'
39
78
  requirements: []
40
79
  rubyforge_project:
41
- rubygems_version: 1.8.22
80
+ rubygems_version: 2.2.0
42
81
  signing_key:
43
- specification_version: 3
82
+ specification_version: 4
44
83
  summary: Turn a string into proc of a series of methods to be called on an object.
45
84
  test_files: []