yan 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yan.rb +1 -2
  3. data/lib/yan/version.rb +1 -1
  4. data/yan.gemspec +2 -0
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0dc699c7527f97c36153c6ad82833d4ecdaf711f
4
- data.tar.gz: 5ac5760c5d78b91e92da2c70980ad0d34d403dfe
3
+ metadata.gz: 3eb9747542e0847736a37fe441fe3ad9a31249f4
4
+ data.tar.gz: 056f60975b4a30ad1457af6cf99e8138685b1a10
5
5
  SHA512:
6
- metadata.gz: 99d6d3665c426b7f90c8084d58dc81dfc44f7d027da7a8ad786927caaee91a150ca0d619f34b0a0514d3abe1ad74d32b0e33c1ef779fa54774b588a0880d730b
7
- data.tar.gz: 950dbe083875c0831124312e3fdcea25c399322e1f2104186536b7ba2c67754050fc42d66f74b0c671b4da17dcf32709450cf21ec1b6a90f12a90a3e821554ec
6
+ metadata.gz: 51a2aebb05a7b7208923f74d16700d794c44c4cc4f9ad5a59b56d6b8ab188820bb382a32826586191ec71732f43e8a4c27a777f5741acb576fdc51c8ac6b7594
7
+ data.tar.gz: a8a07732c845225981a1775fc91bdf297792243476cfd527dc55950e8436727c4c32d0a5bc654ededd5e87788f8057684de02cc292053f247de43711d3068a50
data/lib/yan.rb CHANGED
@@ -48,8 +48,7 @@ module Yan
48
48
 
49
49
  # Actually returns the pun
50
50
  def run
51
- # Array#shuffle randomly shuffles an Array's elements in place.
52
- Yan::Quote::PUNS.shuffle.first
51
+ Yan::Quote::PUNS.sample
53
52
  end
54
53
  end
55
54
  end
@@ -1,3 +1,3 @@
1
1
  module Yan
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -13,6 +13,8 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/philcrissman/yan"
14
14
  spec.license = "MIT"
15
15
 
16
+ spec.required_ruby_version = '>= 1.9.1'
17
+
16
18
  spec.files = `git ls-files -z`.split("\x0")
17
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yan
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
  - Phil Crissman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-13 00:00:00.000000000 Z
11
+ date: 2014-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -83,7 +83,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - '>='
85
85
  - !ruby/object:Gem::Version
86
- version: '0'
86
+ version: 1.9.1
87
87
  required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '>='