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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3491acb100d8b4e8ce91ec01588a4c24baf58d55
4
- data.tar.gz: bcc3d1257891f1de2f13d121c627f427f17d91ec
3
+ metadata.gz: 7d4ff91504514b98ad64594de30163106aa9052d
4
+ data.tar.gz: 2aa51d9f036d8c9f402df8021dcb661a2f399149
5
5
  SHA512:
6
- metadata.gz: 11ea9d325e1ab2dc059898b3f52aa4eb9ac048dc3d750e61fdef188021480e5ffffe7471aa928c9cee353d8edaf9909f9fed7682a560fd4335bbc53c4fd915fa
7
- data.tar.gz: 63abd2dcf73654e36eecef77ec2de17fb1fa66059620f45dbbf847b4b2a112b1420e54c47647db4bf9bd7b924aade9b0252869ae205f096031d16de6cb8fd915
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: Add ability to pass in logged_in_url from ramenSettings
4
- Version 0.3.0: Add RamenRails::Import for importing customers directly into Ramen from command line
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RamenRails
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-27 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack