enop 0.1.5 → 0.1.6

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: 7c0c8069ace4c20d04e27fe59c67a90d0b158ff9
4
- data.tar.gz: 684a364607d64f2807296fd0a9b5d4e87b8e82ff
3
+ metadata.gz: a84a2dfe77dafeaa8def53f2356281d32b535cb2
4
+ data.tar.gz: ec9f9b701a73f4c2e892e9275b25c1fdc54af33c
5
5
  SHA512:
6
- metadata.gz: 0cb46c13de37e241b7e5dcfd5937ae2f070077a20f3e5e132ebaa21baa2c39b84add2a579db85295bffe00c8ca296f13d14c9e6122cd5d3f4a0af3b332db6fb7
7
- data.tar.gz: 479883f3d8a65583d4121d879cbb0fa18fc90e21f8ce823dd19075ded2f2c066c3e3b0eac85fc49b9b3c36d8c6dc7e5dcf1a395c677b467028b5734c6f29e9ff
6
+ metadata.gz: a5f124252ad73bfd20d9a868c87b9cfdaf889ab8c2bfaa158be56ce203a0d75d0964524de4ab2e58815737a15033fe6efd245884d995d458d32e10b3abd00be3
7
+ data.tar.gz: a5f3c3996358815adef8d71619e79755ce32d273e0e8868d9b68a2cd0ce06527573e0175e7735d6f40027f12f37b21cc1349b4b71fea859d8d05a07b2df539c7
data/Gemfile CHANGED
@@ -2,3 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in enop.gemspec
4
4
  gemspec
5
+ gem "arxutils", :path => 'c:/Users/ykomi/cur/ruby/arxutils-gem/arxutils'
@@ -9,9 +9,10 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["yasuo kominami"]
10
10
  spec.email = ["ykominami@gmail.com"]
11
11
 
12
- spec.summary = %q{evernote operation.}
13
- spec.description = %q{evernote operation.}
12
+ spec.summary = %q{abc.}
13
+ spec.description = %q{def.}
14
14
  spec.homepage = ""
15
+ spec.license = "MIT"
15
16
 
16
17
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
17
18
  # delete this section to allow pushing this gem to any host.
@@ -38,7 +39,9 @@ Gem::Specification.new do |spec|
38
39
 
39
40
  spec.add_runtime_dependency "arxutils"
40
41
 
41
- spec.add_development_dependency "bundler", "~> 1.10"
42
- spec.add_development_dependency "rake", "~> 10.0"
42
+ # spec.add_development_dependency "bundler", "~> 1.10"
43
+ spec.add_development_dependency "bundler"
44
+ # spec.add_development_dependency "rake", "~> 10.0"
45
+ spec.add_development_dependency "rake"
43
46
  spec.add_development_dependency "rspec"
44
47
  end
data/exe/enop CHANGED
@@ -8,11 +8,16 @@ dbconfig = Arxutils::Dbutil::DBCONFIG_SQLITE3
8
8
 
9
9
  token = ARGV[0]
10
10
  url = ARGV[1] if ARGV.size > 10
11
+ env = ENV['ENV']
12
+ #env ||= "development"
13
+ env ||= "production"
14
+
11
15
  hs = {
12
16
  "db_dir" => Arxutils::Dbutil::DB_DIR,
13
17
  "migrate_dir" => Arxutils::Dbutil::MIGRATE_DIR,
14
18
  "config_dir" => Arxutils::Dbutil::CONFIG_DIR,
15
19
  "dbconfig" => dbconfig,
20
+ "env" => env,
16
21
  "log_fname" => Arxutils::Dbutil::DATABASELOG,
17
22
  }
18
23
 
@@ -56,7 +56,11 @@ module Enop
56
56
  end
57
57
  hsx
58
58
  }
59
- current_ennblist.update(value_hs) if value_hs.size > 0
59
+ if value_hs.size > 0
60
+ if value_hs.all? { |item| item[1] != nil }
61
+ current_ennblist.update(value_hs)
62
+ end
63
+ end
60
64
  end
61
65
  else
62
66
  # ignore this case.
@@ -124,7 +124,9 @@ module Enop
124
124
  # CSVファイルへ追加(自動的に出力)
125
125
  register_notebook( nbinfo.stack , nbinfo )
126
126
  # dbへの登録
127
- db_add( nbinfo.stack , nbinfo.name , nbinfo.count , nbinfo.tags.size )
127
+ count = nbinfo.count
128
+ count ||= 0
129
+ db_add( nbinfo.stack , nbinfo.name , count , nbinfo.tags.size )
128
130
 
129
131
  # p notebook
130
132
  memo[:defaultNotebook] = nbinfo if nbinfo.defaultNotebook
@@ -1,3 +1,3 @@
1
1
  module Enop
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - yasuo kominami
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2018-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evernote_oauth
@@ -70,30 +70,30 @@ dependencies:
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1.10'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '1.10'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '10.0'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +108,7 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- description: evernote operation.
111
+ description: def.
112
112
  email:
113
113
  - ykominami@gmail.com
114
114
  executables:
@@ -136,7 +136,8 @@ files:
136
136
  - lib/enop/version.rb
137
137
  - lib/evernote_config.rb
138
138
  homepage: ''
139
- licenses: []
139
+ licenses:
140
+ - MIT
140
141
  metadata: {}
141
142
  post_install_message:
142
143
  rdoc_options: []
@@ -154,8 +155,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
155
  version: '0'
155
156
  requirements: []
156
157
  rubyforge_project:
157
- rubygems_version: 2.4.5.1
158
+ rubygems_version: 2.5.2
158
159
  signing_key:
159
160
  specification_version: 4
160
- summary: evernote operation.
161
+ summary: abc.
161
162
  test_files: []