cli_application 0.1.0 → 0.1.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: 66b49ebc791cd738f94c6dc2274df4c7e6468871
4
- data.tar.gz: f2276b446ecba4f73a41b3714b49c580025bcf83
3
+ metadata.gz: 337cc99e5fa6f72596d4078936f39a6e1b966dac
4
+ data.tar.gz: 7be714747c06fee6423c821fdd0f2bd1132986c0
5
5
  SHA512:
6
- metadata.gz: 265b0f7f6389a54fe2ce307a1c31f36b779c72b70e8fe92bd90034cd671bb93f982d05f3a648d8f294e1e2b37f8c6141a4b08836eb8d8afda2b229fbc0e3e39a
7
- data.tar.gz: 2dfbd6666e691431d398182af34434d1bca6cbda18b897fd1b705b022342f6613079990f96d80c9618bc889dabaa3b260e6d4f8b61311c6412a71de85ed88bbc
6
+ metadata.gz: 99509760e8febf9f09e6a347333240fafebfb7bf846cda258cc58ee37048330a0c467a280db9fd7432793ff10d83d2277eb9a6df9221381cadac03825ec41a91
7
+ data.tar.gz: e100729eacb2c0562e17c576ac45191c011525c807cd59bb8a0bb29d94816d68666601fb8c0eb9d8fb472cc696f1865c140870ab1f021cdb199f110374cb5376
@@ -88,7 +88,6 @@ module CliApplication
88
88
  puts "Параметры приложения:"
89
89
 
90
90
  screenwidth = ::StTools::System.screen(:width)
91
- keylen = self.keylen
92
91
 
93
92
  @full.each do |key, data|
94
93
  line = get_helpline(key, data[:description], keylen, screenwidth)
@@ -97,8 +96,10 @@ module CliApplication
97
96
  puts
98
97
  end
99
98
 
99
+
100
100
  private
101
101
 
102
+
102
103
  def set_full(action, key, default, value, description)
103
104
  @full[key] = Hash.new
104
105
  @full[key][:action] = action
@@ -63,7 +63,7 @@ module CliApplication
63
63
  valid?
64
64
 
65
65
  ::Time.zone = self.cli.timezone
66
- # todo: добавить установки времени для записей ActiveRecord
66
+ ::ActiveRecord::Base.default_timezone = self.cli.ar_timezone
67
67
  end
68
68
 
69
69
  def set_pair(key, value) # :nodoc:
@@ -1,3 +1,3 @@
1
1
  module CliApplication
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -4,23 +4,26 @@
4
4
  :version: '1.0'
5
5
  :releasedate: '2015-05-11'
6
6
  :timezone: Moscow
7
- :last_started_at: '2015-05-14 00:00:49 +0300'
7
+ :last_started_at: '2015-05-14 00:34:52 +0300'
8
8
  :folders:
9
- :app: "/Users/Stan/Documents/Development/RubyMine/cli_application/test/examples/5"
9
+ :app: "/Users/Stan/Documents/Development/RubyMine/cli_application/test/examples/4"
10
10
  :class: "/Users/Stan/Documents/Development/RubyMine/cli_application/test/examples/1"
11
11
  :stat: "/Users/Stan/Documents/Development/RubyMine/cli_application/test/examples/1/stat"
12
12
  :avg:
13
- :starts: 61
14
- :executed_at: 0.059675
15
- :executed_at_human: 0.059675 секунд
16
- :memory: 32057
13
+ :starts: 64
14
+ :executed_at: 0.058898
15
+ :executed_at_human: 0.058898 секунд
16
+ :memory: 32213
17
17
  :last:
18
- :started_at: '2015-05-14 00:00:49 +0300'
19
- :executed_at: 0.045486
20
- :executed_at_human: 0.045486 секунд
21
- :memory: 33 кбайт
18
+ :started_at: '2015-05-14 00:34:52 +0300'
19
+ :executed_at: 0.036307
20
+ :executed_at_human: 0.036307 секунд
21
+ :memory: 34 кбайт
22
22
  :exitcode: 0
23
23
  :last10:
24
+ - 2015-05-14 00:34:52 +0300,0,0.036307,34 кбайт
25
+ - 2015-05-14 00:34:41 +0300,255,0.056077,35 кбайт
26
+ - 2015-05-14 00:34:16 +0300,255,0.036939,34 кбайт
24
27
  - 2015-05-14 00:00:49 +0300,0,0.045486,33 кбайт
25
28
  - 2015-05-13 22:04:12 +0300,0,1.267228,38 кбайт
26
29
  - 2015-05-13 22:02:47 +0300,0,0.034901,34 кбайт
@@ -28,6 +31,3 @@
28
31
  - 2015-05-13 21:55:36 +0300,0,0.033505,31 кбайт
29
32
  - 2015-05-13 21:54:50 +0300,0,0.034287,31 кбайт
30
33
  - 2015-05-13 21:50:54 +0300,255,0.045199,32 кбайт
31
- - 2015-05-13 21:49:27 +0300,255,0.02996,31 кбайт
32
- - 2015-05-13 21:30:34 +0300,255,0.049195,31 кбайт
33
- - 2015-05-13 21:29:22 +0300,0,0.031453,32 кбайт
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cli_application
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Zhuravlev
@@ -64,20 +64,20 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 4.1.0
67
+ version: 4.2.1
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
- version: 4.1.0
70
+ version: 4.2.1
71
71
  type: :development
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: 4.1.0
77
+ version: 4.2.1
78
78
  - - ">="
79
79
  - !ruby/object:Gem::Version
80
- version: 4.1.0
80
+ version: 4.2.1
81
81
  description: |-
82
82
  Цель библиотеки - обеспечить быструю разработку CLI-приложений (скриптов).
83
83
  Повышение производительности разработки достигается за счет единообразной обработки файлов конфигуарции,
@@ -130,7 +130,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - "~>"
132
132
  - !ruby/object:Gem::Version
133
- version: '2.0'
133
+ version: 2.2.0
134
134
  required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ">="