first_gem_matt_h44 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 185df77a2b40238e2e16aa21b9c0c8976ecf6417
4
- data.tar.gz: 69dc93c7962115e1beaf4102f73dad7fab5b5970
3
+ metadata.gz: 9a2e75fd88132a11b8a7bfa0e0117dff6f0b9baf
4
+ data.tar.gz: 911fc38cfdeca255a9df31dd696eaf4bc88053ca
5
5
  SHA512:
6
- metadata.gz: 2bf078ad1af7c48832e8077459f5cb11e7574e12af6d794e5a2d41e698e7001ce6f548bae32303bc291b06d1cb370b6f249bbdb977ba2c032a352df9e7b52f3a
7
- data.tar.gz: 54912d1cf34c4b5f3e7969c161003030e07a38ac76358afb385ed2119a463681fdf82d0c6f9b1e920024d2a4a0b7c3a75eed27afad17b08f9f4b519670d4bdaa
6
+ metadata.gz: 03c7e6dadf157b1e39f37c8289f981ebbdf9d0fe49dd40222d446b2fba19f0c07816cc8ed49363675e4c27b48cd79478a232bfb4823afeb1ce5f02e41076c586
7
+ data.tar.gz: a6fa7a109a853d1ed5701f07f01d4987444f94d06443a7281b4ba562af38f7b533ad536942e29a3e8e940500453bb93176a85fe3c4f05f054b5d4d053ffb8ac5
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.5"
22
22
  spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec", "~> 3.0.0.beta"
23
24
  end
@@ -2,6 +2,6 @@ require "first_gem_matt_h44/version"
2
2
 
3
3
  class String
4
4
  def word_count
5
- self.split.word_countend
5
+ self.split.count
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module FirstGemMattH44
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe String, "#word_count" do
4
+
5
+ it "should have a method called word_count" do
6
+ should respond_to :word_count
7
+ end
8
+
9
+ it "should return 1 when the string is one word long" do
10
+ a_string = "apple"
11
+ the_word_count = a_string.word_count
12
+ expect(the_word_count).to eq 1
13
+ end
14
+
15
+ end
@@ -0,0 +1,12 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rspec'
4
+ require 'first_gem_matt_h44'
5
+
6
+ # Requires supporting files with custom matchers and macros, etc,
7
+ # in ./support/ and its subdirectories.
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
+
10
+ RSpec.configure do |config|
11
+
12
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: first_gem_matt_h44
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Higgins
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 3.0.0.beta
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 3.0.0.beta
41
55
  description: Longer description goes here.
42
56
  email:
43
57
  - higginsmt@gmail.com
@@ -46,6 +60,7 @@ extensions: []
46
60
  extra_rdoc_files: []
47
61
  files:
48
62
  - ".gitignore"
63
+ - ".rspec"
49
64
  - Gemfile
50
65
  - LICENSE.txt
51
66
  - README.md
@@ -53,6 +68,8 @@ files:
53
68
  - first_gem_matt_h44.gemspec
54
69
  - lib/first_gem_matt_h44.rb
55
70
  - lib/first_gem_matt_h44/version.rb
71
+ - spec/first_gem_matt_h44_spec.rb
72
+ - spec/spec_helper.rb
56
73
  homepage: ''
57
74
  licenses:
58
75
  - MIT
@@ -77,4 +94,6 @@ rubygems_version: 2.2.1
77
94
  signing_key:
78
95
  specification_version: 4
79
96
  summary: Gem Gem Gem.
80
- test_files: []
97
+ test_files:
98
+ - spec/first_gem_matt_h44_spec.rb
99
+ - spec/spec_helper.rb