railsthemes 1.1.pre.2 → 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.
data/bin/railsthemes CHANGED
@@ -26,6 +26,12 @@ EOS
26
26
  method_option :file,
27
27
  :desc => "Use local relative pathname instead of a code, and install from there.",
28
28
  :type => :boolean
29
+ method_option :staging,
30
+ :desc => "Hit the staging server instead of https://railsthemes.com.",
31
+ :type => :boolean
32
+ method_option :server,
33
+ :desc => "Hit an arbitrary server instead of https://railsthemes.com.",
34
+ :type => :string
29
35
  method_option :no_doc_popup,
30
36
  :desc => "Do not pop up documentation on successful install.",
31
37
  :type => :boolean
@@ -46,6 +52,8 @@ EOS
46
52
  installer.doc_popup = !options[:no_doc_popup]
47
53
  Railsthemes::Logging.verbose if options[:verbose]
48
54
  Railsthemes::Logging.debug if options[:debugging]
55
+ Railsthemes.server = 'http://staging.railsthemes.com' if options[:staging]
56
+ Railsthemes.server = options[:server] if options[:server]
49
57
 
50
58
  if options[:file]
51
59
  file = code_or_file
data/lib/railsthemes.rb CHANGED
@@ -20,11 +20,12 @@ require 'railsthemes/ensurer'
20
20
  module Railsthemes
21
21
  def self.server
22
22
  return @server if @server
23
- @server = 'https://railsthemes.com'
24
- if File.exist?('railsthemes_server')
25
- Logging.logger.warn "WARNING: Using railsthemes_server override!"
26
- @server = File.read('railsthemes_server').gsub("\n", '')
27
- end
23
+ @server ||= 'https://railsthemes.com'
28
24
  @server
29
25
  end
26
+
27
+ def self.server= server
28
+ @server = server
29
+ Logging.logger.warn "Using server: #{server}"
30
+ end
30
31
  end
@@ -26,9 +26,12 @@ module Railsthemes
26
26
  end
27
27
 
28
28
  def popup_documentation
29
- style_guide = Dir['doc/*Usage_And_Style_Guide.html'].first
30
- logger.debug("style_guide: #{style_guide}")
31
- Launchy.open(style_guide) if style_guide
29
+ style_guides = Dir['doc/*Usage_And_Style_Guide.html']
30
+ # need better tests of popping up multiple docs
31
+ style_guides.each do |style_guide|
32
+ logger.debug("style_guide: #{style_guide}")
33
+ Launchy.open(style_guide) if style_guide
34
+ end
32
35
  end
33
36
 
34
37
  # primary method
@@ -1,5 +1,5 @@
1
1
  module Railsthemes
2
2
  unless defined?(Railsthemes::VERSION)
3
- VERSION = "1.1.pre.2"
3
+ VERSION = "1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railsthemes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1923831877
5
- prerelease: 4
4
+ hash: 13
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - pre
10
- - 2
11
- version: 1.1.pre.2
9
+ version: "1.1"
12
10
  platform: ruby
13
11
  authors:
14
12
  - Railsthemes
@@ -145,14 +143,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
143
  required_rubygems_version: !ruby/object:Gem::Requirement
146
144
  none: false
147
145
  requirements:
148
- - - ">"
146
+ - - ">="
149
147
  - !ruby/object:Gem::Version
150
- hash: 25
148
+ hash: 3
151
149
  segments:
152
- - 1
153
- - 3
154
- - 1
155
- version: 1.3.1
150
+ - 0
151
+ version: "0"
156
152
  requirements: []
157
153
 
158
154
  rubyforge_project: