excise 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Changes.md ADDED
@@ -0,0 +1,5 @@
1
+ # v0.1.1
2
+ * Add `Excise(string, pattern)` convenience method. (see: [fb50807](https://github.com/ezkl/excise/commit/fb5080776b722cf6c2f0fabb419374b4e1e7674a))
3
+
4
+ # v0.1.0
5
+ * Initial release
data/README.md CHANGED
@@ -22,9 +22,8 @@ Or install it yourself as:
22
22
  ```ruby
23
23
  require 'excise'
24
24
 
25
- Excise.parse('About 49,000,000 results (0.15 seconds)',
26
- 'About {result_count} results ({load_time} seconds)')
27
-
25
+ Excise('About 49,000,000 results (0.15 seconds)',
26
+ 'About {result_count} results ({load_time} seconds)')
28
27
  #=> {:result_count=>"49,000,000", :load_time=>"0.15"}
29
28
  ```
30
29
 
@@ -1,3 +1,3 @@
1
1
  module Excise
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/excise.rb CHANGED
@@ -7,3 +7,7 @@ module Excise
7
7
  Base.new(string, pattern).parse
8
8
  end
9
9
  end
10
+
11
+ def Excise(string, pattern)
12
+ Excise.parse(string, pattern)
13
+ end
data/spec/excise_spec.rb CHANGED
@@ -9,4 +9,12 @@ describe Excise do
9
9
 
10
10
  it { should be_a Hash }
11
11
  end
12
+
13
+ describe "Excise convenience method" do
14
+ subject { Excise(string, pattern) }
15
+ let(:string) { '[first]' }
16
+ let(:pattern) { '[{first}]' }
17
+
18
+ it { should be_a Hash }
19
+ end
12
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -37,6 +37,7 @@ files:
37
37
  - .gitignore
38
38
  - .rspec
39
39
  - .travis.yml
40
+ - Changes.md
40
41
  - Gemfile
41
42
  - Guardfile
42
43
  - LICENSE.txt
@@ -61,12 +62,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
62
  - - ! '>='
62
63
  - !ruby/object:Gem::Version
63
64
  version: '0'
65
+ segments:
66
+ - 0
67
+ hash: -3359420660313118086
64
68
  required_rubygems_version: !ruby/object:Gem::Requirement
65
69
  none: false
66
70
  requirements:
67
71
  - - ! '>='
68
72
  - !ruby/object:Gem::Version
69
73
  version: '0'
74
+ segments:
75
+ - 0
76
+ hash: -3359420660313118086
70
77
  requirements: []
71
78
  rubyforge_project:
72
79
  rubygems_version: 1.8.23
@@ -75,4 +82,3 @@ specification_version: 3
75
82
  summary: ! 'From extract-values description: "... a simple helper to extract values
76
83
  from a string based on a pattern."'
77
84
  test_files: []
78
- has_rdoc: