rate_theme 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rate_theme/monitor.rb +2 -2
- data/lib/rate_theme/version.rb +1 -1
- data/lib/rate_theme.rb +11 -9
- metadata +2 -3
- data/rate_theme +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f819d1a1dba0c99387a80f601ca81dc839ec6ee
|
4
|
+
data.tar.gz: 20876a69de0ed0bdcf93db310e008984114525be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01789fb7d6741c8f4cb2182b86682e6bbfbd5a921e1f157c5158f1acba9c03696b5714e612370f70bd963cd5152d43516960e5afd8f5307ab365bca85573193e
|
7
|
+
data.tar.gz: 811601d622dd7c0b7d716c7eba00e9c6e4099af9ffd630590476413d93a67b2e6db712f571f3649157a3d5b0fd72eb518747b0c8b21d13757d768934c75c5830
|
data/lib/rate_theme/monitor.rb
CHANGED
@@ -4,7 +4,7 @@ module RateTheme
|
|
4
4
|
def initialize(args)
|
5
5
|
@name = args.fetch(:name)
|
6
6
|
@rating = args.fetch(:rating)
|
7
|
-
@file = "themes.yml"
|
7
|
+
@file = File.expand_path("../themes.yml", __FILE__)
|
8
8
|
end
|
9
9
|
|
10
10
|
def file_virgin
|
@@ -33,7 +33,7 @@ module RateTheme
|
|
33
33
|
attr_accessor :best_theme, :sorted, :data
|
34
34
|
attr_reader :file
|
35
35
|
def initialize
|
36
|
-
@file = "themes.yml"
|
36
|
+
@file = File.expand_path("../themes.yml", __FILE__)
|
37
37
|
@data = nil
|
38
38
|
@best_theme = nil
|
39
39
|
@sorted = nil
|
data/lib/rate_theme/version.rb
CHANGED
data/lib/rate_theme.rb
CHANGED
@@ -29,15 +29,17 @@ require "rate_theme/ask"
|
|
29
29
|
puts name.question
|
30
30
|
@div.call
|
31
31
|
name.receive_answer
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
32
|
+
unless name.input == ''
|
33
|
+
@div.call
|
34
|
+
rating = RateTheme::Ask.new question: "Theme rating? (1-10)"
|
35
|
+
puts rating.question
|
36
|
+
@div.call
|
37
|
+
rating.receive_answer
|
38
|
+
@div.call
|
39
|
+
|
40
|
+
logger = RateTheme::Logger.new name: name.input, rating: rating.input
|
41
|
+
logger.action
|
42
|
+
end
|
41
43
|
elsif ask.input == '2'
|
42
44
|
chosen = RateTheme::Lister.new
|
43
45
|
if chosen.file_search
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rate_theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hayduke19us
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -113,7 +113,6 @@ files:
|
|
113
113
|
- lib/rate_theme/ask.rb
|
114
114
|
- lib/rate_theme/monitor.rb
|
115
115
|
- lib/rate_theme/version.rb
|
116
|
-
- rate_theme
|
117
116
|
- rate_theme.gemspec
|
118
117
|
- test/test_ask.rb
|
119
118
|
- test/test_helper.rb
|
data/rate_theme
DELETED
File without changes
|