ramen-rails 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +8 -2
- data/lib/ramen-rails/import.rb +3 -1
- data/lib/ramen-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d4ff91504514b98ad64594de30163106aa9052d
|
4
|
+
data.tar.gz: 2aa51d9f036d8c9f402df8021dcb661a2f399149
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c494ce67f39c93be6aaa02dffb5c97a057c87450cdc4b5c86beb51d1d347d6883ea1fdbb852a29815e09c7f7c72be7e1f83c64a95da9c2a03aa6f2ff00bc8004
|
7
|
+
data.tar.gz: 24b3b2f5789501b01fe4d66e35374ccb87e86ee49964b68b4714ca4e92d2431f618830099a7d8eeea89f89391645e4d3277c189618188c87ed6d790455995a43
|
data/CHANGELOG
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
|
3
|
-
Version 0.2.0
|
4
|
-
|
3
|
+
Version 0.2.0
|
4
|
+
Add ability to pass in logged_in_url from ramenSettings
|
5
|
+
|
6
|
+
Version 0.3.0
|
7
|
+
Add RamenRails::Import for importing customers directly into Ramen from command line
|
8
|
+
|
9
|
+
Version 0.3.1
|
10
|
+
Print out time for each import
|
data/lib/ramen-rails/import.rb
CHANGED
@@ -64,10 +64,12 @@ module RamenRails
|
|
64
64
|
|
65
65
|
endpoint = ENV['RAMEN_IMPORT_URI'] || "https://ramen.is/po.json"
|
66
66
|
uri = URI("#{endpoint}?json_payload=#{CGI.escape(json)}")
|
67
|
+
start = Time.now.to_f
|
67
68
|
resp = Net::HTTP.get_response(uri)
|
69
|
+
total = Time.now.to_f - start
|
68
70
|
|
69
71
|
if resp.code == "200"
|
70
|
-
puts "Imported #{obj[:name]} <#{obj[:email]}>"
|
72
|
+
puts "Imported #{obj[:name]} <#{obj[:email]}> in #{total} seconds"
|
71
73
|
else
|
72
74
|
puts "ERROR (#{resp.code}) Importing #{obj[:name]} <#{obj[:email]}>. Continuing...."
|
73
75
|
puts resp.body.to_s
|
data/lib/ramen-rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ramen-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Angilly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|