ruboty 1.1.8 → 1.1.9

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: 87bd3d7593e934183c81defcc282d9fbbefa9ced
4
- data.tar.gz: 1269f2c2d3c8fea87727f40be5d9efd652371b20
3
+ metadata.gz: 274074486378b9e899d7164d374f3e62c2e3fae2
4
+ data.tar.gz: 804452f1f34e007e568c4d91c5b408e76f3f57d2
5
5
  SHA512:
6
- metadata.gz: 64f438054bbaf995d2c3ca6d208b169e6d7a1a32a2c8a127321d62943dceee2652c8d3a399d1fa974a08ead58d7eb7ee6c1ad70748c677b6c609c7b48dfbe446
7
- data.tar.gz: af8804c016d2010c93d3e46ae89d86791436958a08b337a1d6787d3c7a89e227cf658ed04a13f62410e9a5744fb9147536a33e17484379d3ea3242613a7a3fd5
6
+ metadata.gz: f11a4a22e2fd00e7d3da38b983989c55dc8da696445f22c6f5828bd2189e068ff23d880d1f504ce286ee406175219b96af054cfdbe1024117f1f46bff70bc410
7
+ data.tar.gz: 2f99b6f695c31c3c19e257d34fa72223cf1fb65ba8eafc899fc91cf75a4938db82ca1ac08cb551391350b65203808b8d0338ba2bc4dd6d2d340ab9a212d879ef
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.1.9
2
+ - Support slop both version 3 and 4
3
+
1
4
  ## 1.1.8
2
5
  - Fix shell adapter
3
6
 
@@ -30,7 +30,11 @@ module Ruboty
30
30
  options.on("--dotenv", "Load .env before running.")
31
31
  options.on("-g", "--generate", "Generate a new chatterbot with ./ruboty/ directory if specified.")
32
32
  options.on("-h", "--help", "Display this help message.")
33
- options.string("-l", "--load", "Load a ruby file before running.")
33
+ if Slop::VERSION >= "4.0.0"
34
+ options.string("-l", "--load", "Load a ruby file before running.")
35
+ else
36
+ options.on("-l", "--load=", "Load a ruby file before running.")
37
+ end
34
38
  end
35
39
  end
36
40
  memoize :options
@@ -1,3 +1,3 @@
1
1
  module Ruboty
2
- VERSION = "1.1.8"
2
+ VERSION = "1.1.9"
3
3
  end
data/ruboty.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.add_dependency "bundler"
21
21
  spec.add_dependency "dotenv"
22
22
  spec.add_dependency "mem"
23
- spec.add_dependency "slop", ">= 4.0.0"
23
+ spec.add_dependency "slop"
24
24
  spec.add_development_dependency "codeclimate-test-reporter", ">= 0.3.0"
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "rspec", "2.14.1"
@@ -46,11 +46,4 @@ describe Ruboty::Adapters::Shell do
46
46
  end
47
47
  end
48
48
  end
49
-
50
- describe "#say" do
51
- it "shows given message body on stdout" do
52
- Ruboty.logger.should_receive(:info).with("a")
53
- adapter.say(body: "a")
54
- end
55
- end
56
49
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 4.0.0
75
+ version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 4.0.0
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: codeclimate-test-reporter
85
85
  requirement: !ruby/object:Gem::Requirement