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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99e01e4b71eff6d5572c0f2ead9420d9e276f05c
4
- data.tar.gz: 079f5b8e0551f721d1c614bdb5414ca195e9326e
3
+ metadata.gz: 6f819d1a1dba0c99387a80f601ca81dc839ec6ee
4
+ data.tar.gz: 20876a69de0ed0bdcf93db310e008984114525be
5
5
  SHA512:
6
- metadata.gz: a48680ed50d4b1bef3c5e788cb63639d0b17f63198aed56fdaa6db41893a421728b7af456e20e4ca7644413489563df045cece17efa51e40426e57c9d78e3fb4
7
- data.tar.gz: 29c35b035aa2853dff1564ce69558702f9f2a7d3762262991a7c882fe2b77b36120206ad8e6e78106d6f89332ef0c007d7630a174bc3ecc5b0dd195cf205e1b6
6
+ metadata.gz: 01789fb7d6741c8f4cb2182b86682e6bbfbd5a921e1f157c5158f1acba9c03696b5714e612370f70bd963cd5152d43516960e5afd8f5307ab365bca85573193e
7
+ data.tar.gz: 811601d622dd7c0b7d716c7eba00e9c6e4099af9ffd630590476413d93a67b2e6db712f571f3649157a3d5b0fd72eb518747b0c8b21d13757d768934c75c5830
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RateTheme
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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
- @div.call
33
- rating = RateTheme::Ask.new question: "Theme rating? (1-10)"
34
- puts rating.question
35
- @div.call
36
- rating.receive_answer
37
- @div.call
38
-
39
- logger = RateTheme::Logger.new name: name.input, rating: rating.input
40
- logger.action
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.3
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-15 00:00:00.000000000 Z
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