lita-vkontakte 1.0.0 → 1.1.0

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: 3f4dbbb5c1bf2ec9dcfc33984202d57931b8d351
4
- data.tar.gz: 0d45c4b8e6db0aa797723d51aa21af79dadff766
3
+ metadata.gz: caa087f45ed0019aab3f2762c3b8c5a709b93337
4
+ data.tar.gz: 4c7423b8eb01905d8301e7ae7182cb9007f7785c
5
5
  SHA512:
6
- metadata.gz: 34bb9a3454cfae7ad0ed1f689315d4e0637a459146ce65a395e22d0e364028cf83f065c9b721cb0399ceb58fb7abdea75f533c36246ac7acdccf1b8f08a7f518
7
- data.tar.gz: 31e7ca4949d12a7b9037d9f051a80521a12cf280b86bff1fbfabeaa7289ad1bedc040060eebf17f025a89dbbe03aa54f5e8ae5b51644d9567cb9eb76a198acba
6
+ metadata.gz: e786a2a117d65465fb6565bee45ebbd915bf9ac575736531c68ee6ffa1c22691f1f0311b1661ae0d83d32a800072350e1bf77c3ee0ff2e976ec381f9828549aa
7
+ data.tar.gz: 4d94f135112fe6d9a760b3a81d5ba2cafce0b60dd616728aa8deec41835e24afccecf251ba814f27706d0bb1ffcf6616313e957854e29af117dc537e009d3416
@@ -7,3 +7,8 @@ Style/AndOr:
7
7
 
8
8
  Style/TrailingComma:
9
9
  Enabled: false
10
+
11
+ Style/FileName:
12
+ Exclude:
13
+ - lib/lita-vkontakte.rb
14
+ - exe/lita-vkontakte
@@ -2,6 +2,8 @@ language: ruby
2
2
 
3
3
  rvm:
4
4
  - 2.0.0
5
+ - 2.1
6
+ - 2.2
5
7
 
6
8
  script: bundle exec rake
7
9
 
@@ -1,5 +1,21 @@
1
1
  # Change Log
2
2
 
3
+ ## [v1.1.0](https://github.com/braiden-vasco/lita-vkontakte/tree/v1.1.0) (2015-06-29)
4
+
5
+ [Full Changelog](https://github.com/braiden-vasco/lita-vkontakte/compare/v1.0.0...v1.1.0)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Remove open-ended dependenies [\#24](https://github.com/braiden-vasco/lita-vkontakte/pull/24) ([braiden-vasco](https://github.com/braiden-vasco))
10
+
11
+ - Move development dependencies to gemspec [\#23](https://github.com/braiden-vasco/lita-vkontakte/pull/23) ([braiden-vasco](https://github.com/braiden-vasco))
12
+
13
+ - Remove unnecessary dependencies [\#22](https://github.com/braiden-vasco/lita-vkontakte/pull/22) ([braiden-vasco](https://github.com/braiden-vasco))
14
+
15
+ - Test with multiple versions of Ruby [\#21](https://github.com/braiden-vasco/lita-vkontakte/pull/21) ([braiden-vasco](https://github.com/braiden-vasco))
16
+
17
+ - Add console wizard [\#20](https://github.com/braiden-vasco/lita-vkontakte/pull/20) ([braiden-vasco](https://github.com/braiden-vasco))
18
+
3
19
  ## [v1.0.0](https://github.com/braiden-vasco/lita-vkontakte/tree/v1.0.0) (2015-06-18)
4
20
 
5
21
  [Full Changelog](https://github.com/braiden-vasco/lita-vkontakte/compare/v0.1.0...v1.0.0)
@@ -44,4 +60,4 @@
44
60
 
45
61
 
46
62
 
47
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
63
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/Gemfile CHANGED
@@ -3,16 +3,4 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in lita-vkontakte.gemspec
4
4
  gemspec
5
5
 
6
- gem 'github_changelog_generator', '~> 1.6.1'
7
-
8
- gem 'yard', '~> 0.8.7.6', require: false
9
- gem 'redcarpet', require: false
10
-
11
- gem 'pry', '~> 0.10.1', require: false
12
-
13
- gem 'rubocop', '~> 0.31.0', require: false
14
-
15
- gem 'rspec', '~> 3.3.0'
16
-
17
- gem 'simplecov', '~> 0.10.0', require: false
18
6
  gem 'coveralls', require: false
data/README.md CHANGED
@@ -17,7 +17,7 @@ At first, see the documentation for Lita: https://docs.lita.io/
17
17
  Add **lita-vkontakte** to your Lita instance's Gemfile:
18
18
 
19
19
  ```ruby
20
- gem 'lita-vkontakte', '~> 1.0.0'
20
+ gem 'lita-vkontakte', '~> 1.1.0'
21
21
  ```
22
22
 
23
23
  ### Preparation
@@ -25,16 +25,11 @@ gem 'lita-vkontakte', '~> 1.0.0'
25
25
  Go to https://vk.com/editapp?act=create and create standalone application.
26
26
  Then go to application settings page and look at application ID and secure key.
27
27
 
28
- Open the Ruby console (for example with `irb` command) and type the following
29
- (replace `LITA_VK_APP_ID` with your application ID):
28
+ Open terminal and type the following command
29
+ (replace `$LITA_VK_APP_ID` with your application ID):
30
30
 
31
- ```ruby
32
- require 'vkontakte_api'
33
-
34
- VkontakteApi.app_id = 'LITA_VK_APP_ID'
35
- VkontakteApi.redirect_uri = 'https://oauth.vk.com/blank.html'
36
-
37
- puts VkontakteApi.authorization_url(type: :client, scope: [:offline, :messages])
31
+ ```sh
32
+ $ lita-vkontakte $LITA_VK_APP_ID
38
33
  ```
39
34
 
40
35
  You will see a link. Open it in browser where you are authorized in VKontakte
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'vkontakte_api'
4
+
5
+ if ARGV.empty?
6
+ puts %(\
7
+ usage: lita-vkontakte <app_id>
8
+ where <app_id> is ID of your application
9
+
10
+ You can create application here:
11
+ https://vk.com/editapp?act=create
12
+ Application should have type "Standalone"
13
+
14
+ )
15
+ else
16
+ VkontakteApi.app_id = ARGV[0]
17
+ VkontakteApi.redirect_uri = 'https://oauth.vk.com/blank.html'
18
+
19
+ url = VkontakteApi.authorization_url(type: :client,
20
+ scope: [:offline, :messages])
21
+
22
+ puts %(\
23
+ Go to the following URL:
24
+ #{url}
25
+
26
+ You will be redirected to address with argument "access_token" in query string.
27
+ Copy it's value to your Lita instance's configuration file.
28
+
29
+ )
30
+ end
@@ -1,5 +1,3 @@
1
- # rubocop:disable Style/FileName
2
-
3
1
  require 'lita'
4
2
 
5
3
  Lita.load_locales(Dir[File.expand_path('../../locales/*.yml', __FILE__)])
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'lita-vkontakte'
5
- spec.version = '1.0.0'
5
+ spec.version = '1.1.0'
6
6
  spec.authors = ['Braiden Vasco']
7
7
  spec.email = ['braiden-vasco@mailtor.net']
8
8
 
@@ -24,7 +24,13 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.7'
26
26
  spec.add_development_dependency 'rake', '~> 10.0'
27
+ spec.add_development_dependency 'github_changelog_generator', '~> 1.6'
28
+ spec.add_development_dependency 'yard', '~> 0.8'
29
+ spec.add_development_dependency 'redcarpet', '~> 3.3'
30
+ spec.add_development_dependency 'rubocop', '~> 0.31'
31
+ spec.add_development_dependency 'rspec', '~> 3.3'
32
+ spec.add_development_dependency 'simplecov', '~> 0.10'
27
33
 
28
- spec.add_runtime_dependency 'lita', '>= 4.4'
29
- spec.add_runtime_dependency 'vkontakte_api', '1.4.3'
34
+ spec.add_runtime_dependency 'lita', '~> 4.4'
35
+ spec.add_runtime_dependency 'vkontakte_api', '~> 1.4'
30
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-vkontakte
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Braiden Vasco
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-06-18 00:00:00.000000000 Z
11
+ date: 2015-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,38 +38,123 @@ dependencies:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: github_changelog_generator
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.6'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.6'
55
+ - !ruby/object:Gem::Dependency
56
+ name: yard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '0.8'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '0.8'
69
+ - !ruby/object:Gem::Dependency
70
+ name: redcarpet
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '3.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '3.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '0.31'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '0.31'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: '3.3'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '3.3'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '0.10'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: '0.10'
41
125
  - !ruby/object:Gem::Dependency
42
126
  name: lita
43
127
  requirement: !ruby/object:Gem::Requirement
44
128
  requirements:
45
- - - '>='
129
+ - - ~>
46
130
  - !ruby/object:Gem::Version
47
131
  version: '4.4'
48
132
  type: :runtime
49
133
  prerelease: false
50
134
  version_requirements: !ruby/object:Gem::Requirement
51
135
  requirements:
52
- - - '>='
136
+ - - ~>
53
137
  - !ruby/object:Gem::Version
54
138
  version: '4.4'
55
139
  - !ruby/object:Gem::Dependency
56
140
  name: vkontakte_api
57
141
  requirement: !ruby/object:Gem::Requirement
58
142
  requirements:
59
- - - '='
143
+ - - ~>
60
144
  - !ruby/object:Gem::Version
61
- version: 1.4.3
145
+ version: '1.4'
62
146
  type: :runtime
63
147
  prerelease: false
64
148
  version_requirements: !ruby/object:Gem::Requirement
65
149
  requirements:
66
- - - '='
150
+ - - ~>
67
151
  - !ruby/object:Gem::Version
68
- version: 1.4.3
152
+ version: '1.4'
69
153
  description: VKontakte adapter for the Lita chat bot.
70
154
  email:
71
155
  - braiden-vasco@mailtor.net
72
- executables: []
156
+ executables:
157
+ - lita-vkontakte
73
158
  extensions: []
74
159
  extra_rdoc_files: []
75
160
  files:
@@ -86,6 +171,7 @@ files:
86
171
  - Rakefile
87
172
  - bin/console
88
173
  - bin/setup
174
+ - exe/lita-vkontakte
89
175
  - lib/lita-vkontakte.rb
90
176
  - lib/lita/adapters/vkontakte.rb
91
177
  - lita-vkontakte.gemspec
@@ -111,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
197
  version: '0'
112
198
  requirements: []
113
199
  rubyforge_project:
114
- rubygems_version: 2.4.6
200
+ rubygems_version: 2.4.8
115
201
  signing_key:
116
202
  specification_version: 4
117
203
  summary: VKontakte adapter for the Lita chat bot