expando 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8cf379ad139932da604fc6d94c8fa3c41569b61
4
- data.tar.gz: 1062b407d1dbd3e6ec2800af6b7bc10ea7db9f20
3
+ metadata.gz: b527a55fb318f3d0d8c928c4ce8a11c2b382468d
4
+ data.tar.gz: 18ddb3d0fe8cb957146759656e0509644613bd1e
5
5
  SHA512:
6
- metadata.gz: d829326624eab375c80ab5c49d3bea4266d24fa4ae44b550a4e0547bbeba690b5a17fbe609d9a7bd550a2f3edd7b57c254fef1eec11f817b906aa610172c8f83
7
- data.tar.gz: 8c2830e592a0d327bdbfdb911b8f7dcd79b47550c156f3c726c8bbdcce6ecefc3f7959e2fbedf56d94103f22c7f42c8f7b847557750178b8301a850bd852977e
6
+ metadata.gz: 59fffe8f0a782f5e942ef0e9470330d74b4d6ae6663dd7d5295feb9cfa363d68dceae2376c7cdd18113a28ca52ead74e8ab8750f60e6f465a4911ed3df09c915
7
+ data.tar.gz: 841ce7f7805e4a7810095a88dfb0b75fb34d558f365d3871f32073eb967f06f4b9817964b4d5270f23073e299ebb88aa9b4ca0101e85133b2b1fd4f3fe78cbfd
@@ -1,14 +1,21 @@
1
1
  # Change Log
2
2
 
3
- ## [v0.2.1](https://github.com/expando-lang/expando/tree/HEAD)
3
+ ## [v0.2.2](https://github.com/expando-lang/expando/tree/v0.2.2) (2016-11-02)
4
+ [Full Changelog](https://github.com/expando-lang/expando/compare/v0.2.1...v0.2.2)
4
5
 
5
- [Full Changelog](https://github.com/expando-lang/expando/compare/v0.2.0...HEAD)
6
+ **Fixed bugs:**
7
+
8
+ - Fix bug in intent and entity path calculation. See [0cb75fa](https://github.com/expando-lang/expando/commit/0cb75fa09d39b10d00553baa40ebc00bbde33ae5)
9
+
10
+ ## [v0.2.1](https://github.com/expando-lang/expando/tree/v0.2.1) (2016-10-21)
11
+
12
+ [Full Changelog](https://github.com/expando-lang/expando/compare/v0.2.0...v0.2.1)
6
13
 
7
14
  **Fixed bugs:**
8
15
 
9
16
  - Use forked version of api-ai-ruby gem [\#3](https://github.com/expando-lang/expando/issues/3)
10
17
 
11
- ## [v0.2.0](https://github.com/expando-lang/expando/tree/v0.2.0)
18
+ ## [v0.2.0](https://github.com/expando-lang/expando/tree/v0.2.0) (2016-10-19)
12
19
 
13
20
  [Full Changelog](https://github.com/expando-lang/expando/compare/v0.1.0...v0.2.0)
14
21
 
@@ -59,7 +59,6 @@ command [ :update, :u ] do | c |
59
59
  entities.action do | global_options, options, args |
60
60
  # Determine path to entity files
61
61
  entities_path_from_options = options[ :entities_path ] || global_options[ :entities_path ]
62
- entities_path = entities_path_from_options ? File.expand_path( entities_path_from_options ) : nil
63
62
 
64
63
  if args.empty?
65
64
  entity_names = Dir.entries( entities_path )[ 2..-1 ].collect { | f | f.gsub( '.txt', '' ) }
@@ -68,9 +67,15 @@ command [ :update, :u ] do | c |
68
67
  end
69
68
 
70
69
  entity_names.each do | entity |
71
- updater = Expando::EntityUpdater.new( entity,
72
- client_keys: global_options[ :credentials ],
73
- entities_path: entities_path )
70
+ updater = if entities_path_from_options
71
+ Expando::EntityUpdater.new( entity,
72
+ client_keys: global_options[ :credentials ],
73
+ entities_path: File.expand_path( entities_path_from_options ) )
74
+ else
75
+ Expando::EntityUpdater.new( entity,
76
+ client_keys: global_options[ :credentials ])
77
+ end
78
+
74
79
  updater.update!
75
80
  end
76
81
  end
@@ -90,7 +95,6 @@ command [ :update, :u ] do | c |
90
95
  intents.action do | global_options, options, args |
91
96
  # Determine path to intent files
92
97
  intents_path_from_options = options[ :intents_path ] || global_options[ :intents_path ]
93
- intents_path = intents_path_from_options ? File.expand_path( intents_path_from_options ) : nil
94
98
 
95
99
  if args.empty?
96
100
  intent_names = Dir.entries( intents_path )[ 2..-1 ].collect { | f | f.gsub( '.txt', '' ) }
@@ -99,9 +103,15 @@ command [ :update, :u ] do | c |
99
103
  end
100
104
 
101
105
  intent_names.each do | intent |
102
- updater = Expando::IntentUpdater.new( intent,
103
- client_keys: global_options[ :credentials ],
104
- intents_path: intents_path)
106
+ updater = if intents_path_from_options
107
+ Expando::IntentUpdater.new( intent,
108
+ client_keys: global_options[ :credentials ],
109
+ intents_path: File.expand_path( intents_path_from_options ) )
110
+ else
111
+ Expando::IntentUpdater.new( intent,
112
+ client_keys: global_options[ :credentials ])
113
+ end
114
+
105
115
  updater.update!
106
116
  end
107
117
  end
@@ -1,3 +1,3 @@
1
1
  module Expando
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expando
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Buck
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-21 00:00:00.000000000 Z
11
+ date: 2016-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler