siteleaf 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/bin/siteleaf +3 -3
  3. data/lib/siteleaf/version.rb +1 -1
  4. metadata +62 -93
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: b05eb5577c086807281dd10c51123f12982811fd
4
+ metadata.gz: 7fde2f67bb1838330bfe9ca92a3619f7754ccd2e
5
+ SHA512:
6
+ data.tar.gz: 39ee781df4d1e71a853033865291f1cbe4059ae4c52e677601dc11819c7abc9b59fafe170d1280623a4bb2e414ecf96b61d5193b0f461d174377bc0205c425e5
7
+ metadata.gz: da7a9342af8ceddb79652d90279573d34d472f76aff06db6acb6c8413e470e7e3f4b62cbcab019cbf0230d75e5813293ecc5431a789967384f8afc3e76e4dd8c
data/bin/siteleaf CHANGED
@@ -58,7 +58,7 @@ end
58
58
  def config(site)
59
59
  File.open('config.ru', 'w') { |file| file.write "# Intended for development purposes only, do not upload or use in production.
60
60
  # See https://github.com/siteleaf/siteleaf-gem for documentation.
61
-
61
+ require 'rubygems'
62
62
  require 'siteleaf'
63
63
  run Siteleaf::Server.new(:site_id => '#{site.id}')" }
64
64
 
@@ -89,9 +89,9 @@ def get_theme_assets(site_id)
89
89
  if File.exist?(asset['filename']) && (file = File.read(asset['filename'])) && (Digest::MD5.hexdigest(file) == asset['checksum'])
90
90
  # file is up to date
91
91
  else
92
- file = open("#{asset['file']['url']}?#{SecureRandom.hex(16)}", 'r:UTF-8') { |f| f.read }
92
+ file = open("#{asset['file']['url']}?#{SecureRandom.hex(16)}", /^1\.8/.match(RUBY_VERSION) ? 'r' : 'r:UTF-8') { |f| f.read }
93
93
  FileUtils.mkdir_p(File.dirname(asset['filename']))
94
- File.open(asset['filename'], 'w:UTF-8') { |f| f.write(file) }
94
+ File.open(asset['filename'], /^1\.8/.match(RUBY_VERSION) ? 'w' : 'w:UTF-8') { |f| f.write(file) }
95
95
  updated_count += 1
96
96
  end
97
97
  end
@@ -1,3 +1,3 @@
1
1
  module Siteleaf
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.7"
3
3
  end
metadata CHANGED
@@ -1,104 +1,71 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: siteleaf
3
- version: !ruby/object:Gem::Version
4
- version: 0.9.6
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.7
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - Siteleaf
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-27 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2013-06-28 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 1.7.7
22
- type: :runtime
23
16
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
27
19
  - - ~>
28
- - !ruby/object:Gem::Version
20
+ - !ruby/object:Gem::Version
29
21
  version: 1.7.7
30
- - !ruby/object:Gem::Dependency
31
- name: httparty
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
22
  type: :runtime
23
+ version_requirements: *id001
24
+ - !ruby/object:Gem::Dependency
25
+ name: httparty
39
26
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: httmultiparty
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
27
+ requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - &id003
30
+ - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: "0"
54
33
  type: :runtime
34
+ version_requirements: *id002
35
+ - !ruby/object:Gem::Dependency
36
+ name: httmultiparty
55
37
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: zip
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
38
+ requirement: &id004 !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - *id003
70
41
  type: :runtime
42
+ version_requirements: *id004
43
+ - !ruby/object:Gem::Dependency
44
+ name: zip
71
45
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: rack
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
46
+ requirement: &id005 !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - *id003
86
49
  type: :runtime
50
+ version_requirements: *id005
51
+ - !ruby/object:Gem::Dependency
52
+ name: rack
87
53
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
54
+ requirement: &id006 !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - *id003
57
+ type: :runtime
58
+ version_requirements: *id006
94
59
  description: A Ruby interface and command line utility for the Siteleaf API.
95
- email:
60
+ email:
96
61
  - api@siteleaf.com
97
- executables:
62
+ executables:
98
63
  - siteleaf
99
64
  extensions: []
65
+
100
66
  extra_rdoc_files: []
101
- files:
67
+
68
+ files:
102
69
  - .gitignore
103
70
  - Gemfile
104
71
  - LICENSE.txt
@@ -117,26 +84,28 @@ files:
117
84
  - siteleaf.gemspec
118
85
  homepage: http://siteleaf.com
119
86
  licenses: []
87
+
88
+ metadata: {}
89
+
120
90
  post_install_message:
121
91
  rdoc_options: []
122
- require_paths:
92
+
93
+ require_paths:
123
94
  - lib
124
- required_ruby_version: !ruby/object:Gem::Requirement
125
- none: false
126
- requirements:
127
- - - ! '>='
128
- - !ruby/object:Gem::Version
129
- version: '1.8'
130
- required_rubygems_version: !ruby/object:Gem::Requirement
131
- none: false
132
- requirements:
133
- - - ! '>='
134
- - !ruby/object:Gem::Version
135
- version: '0'
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: "1.8"
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - *id003
136
103
  requirements: []
104
+
137
105
  rubyforge_project:
138
- rubygems_version: 1.8.23
106
+ rubygems_version: 2.0.3
139
107
  signing_key:
140
- specification_version: 3
108
+ specification_version: 4
141
109
  summary: Siteleaf Ruby interface
142
110
  test_files: []
111
+