twitter_client_app 0.0.2 → 0.0.3
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 +4 -4
- data/README.md +9 -1
- data/bin/twitter_client_app +4 -0
- data/lib/twitter_client_app/cli.rb +11 -0
- data/lib/twitter_client_app/version.rb +1 -1
- data/lib/twitter_client_app.rb +1 -1
- data/twitter_client_app.gemspec +3 -1
- metadata +22 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c03a4596b09388aa2739c3bc413cd7914bc89422
|
4
|
+
data.tar.gz: f1f25649063109e05306362e385151033d3e24f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f723b9234287909f8fa3f55b5b0334b0644b5b643010e91f2ede6be9b17c38764be903e19ad518b02e61aec29f398e1f8399752c4266008760626b9f3bdbf8d
|
7
|
+
data.tar.gz: bfdc176513186b008e7354a7fb35a7e385a8ab044983e9776ba7596923cffbd31cc226a9caf2c64591d81e4b7a4f4aa2dc9dfd3f18260fdc4b0cfa273d655aa4
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# TwitterClientApp
|
2
2
|
|
3
|
-
A simple Sinatra app which is integrated with Twitter
|
3
|
+
A simple Sinatra app which is integrated with Twitter OAuth login and some of its API.
|
4
4
|
|
5
5
|
This gem aims for Sencha MokuMoku Meetup 2nd (that be held in Japan at 2014/05/30).
|
6
6
|
|
@@ -31,6 +31,14 @@ Edit Gemfile as followings.
|
|
31
31
|
|
32
32
|
gem 'twitter_client_app'
|
33
33
|
|
34
|
+
then `Bundle install`.
|
35
|
+
|
36
|
+
Or you can use `init` command of `twitter_client_app`.
|
37
|
+
|
38
|
+
$ twitter_client_app init PROJECT_NAME
|
39
|
+
|
40
|
+
If you want to use CLI, you should install 'twitter_client_app' gem directory.
|
41
|
+
|
34
42
|
Also make public directory, and put the index.html file. After that, please make app.rb and edit it as following.
|
35
43
|
|
36
44
|
require 'twitter_client_app'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'thor'
|
2
|
+
|
3
|
+
module TwitterClientApp
|
4
|
+
class CLI < Thor
|
5
|
+
desc "init PROJECT_NAME", "Generate the application project files."
|
6
|
+
def init(project_name)
|
7
|
+
FileUtils.cp_r(File.expand_path('../../../example/', __FILE__), project_name)
|
8
|
+
say("Files of \"#{project_name}\" project was generated.", :green)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
data/lib/twitter_client_app.rb
CHANGED
data/twitter_client_app.gemspec
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
require 'twitter_client_app/version'
|
5
|
+
require 'twitter_client_app/cli'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
8
|
spec.name = "twitter_client_app"
|
@@ -22,8 +23,9 @@ Gem::Specification.new do |spec|
|
|
22
23
|
spec.add_dependency "sinatra-contrib"
|
23
24
|
spec.add_dependency "oauth"
|
24
25
|
spec.add_dependency "twitter"
|
25
|
-
spec.add_dependency "
|
26
|
+
spec.add_dependency "thor"
|
26
27
|
|
27
28
|
spec.add_development_dependency "bundler", "~> 1.6"
|
28
29
|
spec.add_development_dependency "rake"
|
30
|
+
spec.add_development_dependency "pry"
|
29
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter_client_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KAWANO Shinobu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: thor
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -108,11 +108,26 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
description: This gem aims for Sencha MokuMoku Meetup 2nd (that be held in Japan at
|
112
126
|
2014/05/30).
|
113
127
|
email:
|
114
128
|
- kawanoshinobu@gmail.com
|
115
|
-
executables:
|
129
|
+
executables:
|
130
|
+
- twitter_client_app
|
116
131
|
extensions: []
|
117
132
|
extra_rdoc_files: []
|
118
133
|
files:
|
@@ -121,6 +136,7 @@ files:
|
|
121
136
|
- LICENSE.txt
|
122
137
|
- README.md
|
123
138
|
- Rakefile
|
139
|
+
- bin/twitter_client_app
|
124
140
|
- example/Gemfile
|
125
141
|
- example/app.rb
|
126
142
|
- example/public/index.html
|
@@ -129,6 +145,7 @@ files:
|
|
129
145
|
- images/3.png
|
130
146
|
- images/4.png
|
131
147
|
- lib/twitter_client_app.rb
|
148
|
+
- lib/twitter_client_app/cli.rb
|
132
149
|
- lib/twitter_client_app/version.rb
|
133
150
|
- twitter_client_app.gemspec
|
134
151
|
homepage: ''
|
@@ -151,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
168
|
version: '0'
|
152
169
|
requirements: []
|
153
170
|
rubyforge_project:
|
154
|
-
rubygems_version: 2.2.
|
171
|
+
rubygems_version: 2.2.0
|
155
172
|
signing_key:
|
156
173
|
specification_version: 4
|
157
174
|
summary: A simple Sinatra app which is integrated with Twitter Oauth login and some
|