reemo 0.2.0.pre.SNAPSHOT → 0.2.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: fb743b129f0abfd0ad88cedd537950dcd533b085
4
- data.tar.gz: 31e5edcf24516a92d98f33574ce7b970c6bbf983
3
+ metadata.gz: f0483686c9597757174af1536087c9e04bae735f
4
+ data.tar.gz: 508165a9bf7f1a481aee86408d51cb9aef0abd49
5
5
  SHA512:
6
- metadata.gz: bae107dd092a6252b7f46aaaa6e15e675222449fbd16385a67edd8fae425e6c33ca069a7e21491e8028870b32b613d01410f7dc1a89589012ffdefddddbabc4f
7
- data.tar.gz: ca954566528c7473055a196af2b7441fed72991560db9eff2b07898d813099d10cd27fea6ff0157b815a75019d5bc3c13acb928ef7cc8ae2f601427a6369e1cb
6
+ metadata.gz: 02515e97f484857aaca178acb598d607414d8833bb80131afe55ef578d0d8facc7a423f83b5e3b9b894833e3cfbbca1d4fcae1c48dbfd4f171b3ddfb36b79958
7
+ data.tar.gz: 55119828181d8f93364aa10d8c8743dd991bafdac574a40a08df3f41c5b0445e5841bbd35350c65df4fd52243b1854f72bad225a517726452f6d839f1babd0a0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- reemo (0.2.0.pre.SNAPSHOT)
4
+ reemo (0.2.0)
5
5
  buff-ignore
6
6
  minitar
7
7
  multipart-post
data/lib/reemo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Reemo
2
- VERSION = "0.2.0-SNAPSHOT"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/reemo.rb CHANGED
@@ -23,6 +23,18 @@ module Reemo
23
23
  # (from: http://secret-garden.hatenablog.com/entry/2015/05/27/193313)
24
24
  map "run" => :run_
25
25
 
26
+ # (from: https://stackoverflow.com/a/7253594/2885946)
27
+ default_task :run_
28
+
29
+ # (from: https://stackoverflow.com/a/27804972/2885946)
30
+ map "--version" => :__print_version
31
+
32
+ # (from: https://stackoverflow.com/a/27804972/2885946)
33
+ desc "--version", "Print the version"
34
+ def __print_version
35
+ puts(Reemo::VERSION)
36
+ end
37
+
26
38
  desc "sever-config", "Configure a server setting"
27
39
  option :host, :required => true, :type => :string
28
40
  option :http_port, :required => true, :type => :numeric
@@ -59,8 +71,15 @@ module Reemo
59
71
  end
60
72
 
61
73
  desc "run", "Run this project in current working directory"
74
+ option :develop, :type => :boolean, :default => false
62
75
  def run_()
63
76
 
77
+ is_developping = options[:develop]
78
+
79
+ if is_developping
80
+ puts("==== DEVELOP OPTION IS ON ====")
81
+ end
82
+
64
83
  # If configure file doesn't exist
65
84
  if !File.exists?(GLOBAL_CONFIG_YAML_PATH)
66
85
  STDERR.puts <<EOS
@@ -132,7 +151,9 @@ EOS
132
151
  end
133
152
  }
134
153
 
135
- puts("Session ID: #{session_id}")
154
+ if is_developping
155
+ puts("Session ID: #{session_id}")
156
+ end
136
157
  File.write(OLD_SESSION_ID_FILE_PATH, session_id)
137
158
 
138
159
  user_name = session_id
data/reemo.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Ryo Ota"]
10
10
  spec.email = ["nwtgck@gmail.com"]
11
11
 
12
- spec.summary = %q{Write a short summary, because RubyGems requires one.}
13
- spec.description = %q{Write a longer description or delete this line.}
12
+ spec.summary = %q{Reemo CLI}
13
+ spec.description = %q{CLI for Reemo}
14
14
  spec.homepage = "https://github.com/nwtgck/reemo-cli-ruby"
15
15
 
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reemo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre.SNAPSHOT
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Ota
@@ -94,7 +94,7 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '10.0'
97
- description: Write a longer description or delete this line.
97
+ description: CLI for Reemo
98
98
  email:
99
99
  - nwtgck@gmail.com
100
100
  executables:
@@ -146,13 +146,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  requirements:
149
- - - ">"
149
+ - - ">="
150
150
  - !ruby/object:Gem::Version
151
- version: 1.3.1
151
+ version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 2.6.12
154
+ rubygems_version: 2.6.13
155
155
  signing_key:
156
156
  specification_version: 4
157
- summary: Write a short summary, because RubyGems requires one.
157
+ summary: Reemo CLI
158
158
  test_files: []