better_alexa_rubykit 1.2.0 → 1.2.1

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: 33e9e3a4b504df8b75a6a6c67f181ef610360ab7
4
- data.tar.gz: bb8c2f6395557a7e3714a8538b75f20ef7303613
3
+ metadata.gz: 0ed636c8ad1ee275bb122c0276e74bbbf1270860
4
+ data.tar.gz: 94f63a5cbe0b759560134d504e1b936b1dfd53e3
5
5
  SHA512:
6
- metadata.gz: e225bb0de7bdc527d0e813e3c0a7c43fee921eaa9937701f40ca030cf7e7f7f473779bd77f9bec0b0cf57f1aab399a43bbc1c729bfd8a70350dda7e583ac2417
7
- data.tar.gz: 7ccdb0f169c5db6996d77ae2a2c6f2244c326add787363e472616c8a5dfa3c498747c799080a41ae0f13bfd78bd1f973b8917be8907cfb2f9eaf60e0c3ed6b80
6
+ metadata.gz: 8cdff6094b2d44b10caa73e1ad398c784afb600575827d994549fe307390b0e623acb51fa527f60a14f39a2406603063143ed899f30a0da45f280c4cf728edab
7
+ data.tar.gz: 490f6dd3409700263f0987232f578707990eb9a0c70d5f1728ccba847329e8d0bba9494c8670680c61b75963583b5da4c57ce1b75c8150698a6e199de0b0b14a
data/README.md CHANGED
@@ -1,25 +1,16 @@
1
1
  # AlexaRubykit
2
- [![Gem Version](https://badge.fury.io/rb/alexa_rubykit.svg)](http://badge.fury.io/rb/alexa_rubykit)[![Build Status](https://travis-ci.org/damianFC/alexa-rubykit.svg?branch=master)](https://travis-ci.org/damianFC/alexa-rubykit)[![Build Status](https://travis-ci.org/damianFC/alexa-rubykit.svg?branch=dev)](https://travis-ci.org/damianFC/alexa-rubykit)[![Inline docs](http://inch-ci.org/github/damianFC/alexa-rubykit.svg?branch=master)](http://inch-ci.org/github/damianFC/alexa-rubykit)
2
+ [![Gem Version](https://badge.fury.io/rb/better_alexa_rubykit.svg)](https://badge.fury.io/rb/better_alexa_rubykit.svg)[![Build Status](https://travis-ci.org/kjanoudi/better_alexa_rubykit.svg?branch=master)](https://travis-ci.org/kjanoudi/better_alexa_rubykit)
3
3
 
4
4
  This gem implements a quick back-end service for deploying applications for Amazon's Echo (Alexa).
5
5
 
6
6
  ## Installation
7
7
 
8
- ### Sample Application
9
-
10
- For a sample application video tutorial, check
11
-
12
- <a href="http://www.youtube.com/watch?feature=player_embedded&v=PwZf506UKHo" target="_blank"><img src="http://img.youtube.com/vi/PwZf506UKHo/0.jpg"
13
- alt="Running a sample Rubykit Demo" width="240" height="180" border="5" /></a>
14
-
15
- Samples are provided by the alexa_rubyengine project: https://github.com/damianFC/alexa_rubyengine
16
-
17
8
  ### For Ruby Projects:
18
9
 
19
10
  Add this line to your application's Gemfile:
20
11
 
21
12
  ```ruby
22
- gem 'alexa_rubykit'
13
+ gem 'better_alexa_rubykit'
23
14
  ```
24
15
 
25
16
  And then execute:
@@ -28,7 +19,7 @@ And then execute:
28
19
 
29
20
  Or install it yourself as:
30
21
 
31
- $ gem install alexa_rubykit
22
+ $ gem install better_alexa_rubykit
32
23
 
33
24
  ## Usage
34
25
 
@@ -37,8 +28,8 @@ This Gem provides methods to create and handle request and response objects to b
37
28
  Sample usage:
38
29
 
39
30
  ```ruby
40
- require 'alexa_rubykit'
41
- response = AlexaRubykit::Response.new
31
+ require 'better_alexa_rubykit'
32
+ response = BetterAlexaRubykit::Response.new
42
33
  response.add_speech('Ruby is running ready!')
43
34
  response.build_response
44
35
  ```
@@ -59,23 +50,12 @@ the management console.
59
50
  ## Contributing
60
51
 
61
52
  1. Decide to work on the "dev" (unstable) branch or "master" (stable)
62
- 1. Fork it ( https://github.com/[my-github-username]/alexa_rubykit/fork )
53
+ 1. Fork it ( https://github.com/kjanoudi/better_alexa_rubykit/fork )
63
54
  2. Create your feature branch (`git checkout -b my-new-feature`)
64
55
  3. Commit your changes (`git commit -am 'Add some feature'`)
65
56
  4. Push to the branch (`git push origin my-new-feature`)
66
57
  5. Create a new Pull Request
67
58
 
68
- All development is done in the "dev" branch before being merged to master. Applications can use the developer
69
- environment by adding the following line to their Gemfile:
70
-
71
- ```ruby
72
- gem 'alexa_rubykit', :git => 'https://github.com/damianFC/alexa-rubykit.git', :branch => 'dev'
73
- ```
74
-
75
- To use the stable/master branch, rename 'dev' to 'master' or remove :branch all together.
76
-
77
-
78
59
 
79
- # <a name="team-members"></a>Team Members
80
- * "Damian Finol" <damian.finol@gmail.com>
81
- * "Dave Shapiro" <dss.shapiro@gmail.com>
60
+ # <a name="team-members"></a>Special Thanks To
61
+ * "Damian Finol" <damian.finol@gmail.com> for providing the majority of the codebase via his original repo, [https://github.com/damianFC/alexa-rubykit/](https://github.com/damianFC/alexa-rubykit/)
@@ -19,6 +19,16 @@ module BetterAlexaRubyKit
19
19
  # TODO: We probably need better session handling.
20
20
  @session = BetterAlexaRubyKit::Session.new(json_request['session'])
21
21
  end
22
+
23
+ def intent_name
24
+ if type == "LAUNCH_REQUEST"
25
+ return 'LaunchRequest'
26
+ elsif type == 'INTENT_REQUEST'
27
+ return name
28
+ else
29
+ return 'SessionEndedRequest'
30
+ end
31
+ end
22
32
  end
23
33
 
24
34
  # Builds a new request for Alexa.
@@ -1,3 +1,3 @@
1
1
  module BetterAlexaRubyKit
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_alexa_rubykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kareem Janoudi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-12 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '10.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement