foursquare_rails_generators 0.1.5 → 0.1.6

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/README.md CHANGED
@@ -4,6 +4,6 @@ For now, it's only available when you create a new Rails app from scratch (but i
4
4
 
5
5
  To create a new app with Foursquare and deploy to Heroku, run:
6
6
 
7
- > rails new {your-unique-app-name} -m https://raw.github.com/gist/4007411/e0580f5e0db6bc91d3e329ecfb8b78580d858865/gistfile1.rb
7
+ > rails new {your-unique-app-name} -d postgresql -m https://raw.github.com/gist/4007411/e0580f5e0db6bc91d3e329ecfb8b78580d858865/gistfile1.rb
8
8
 
9
9
  Note: try to make sure {your-unique-app-name} is unique or Heroku won't let you create an app with a name that's already taken.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'foursquare_rails_generators'
3
- s.version = '0.1.5'
4
- s.date = '2012-10-26'
3
+ s.version = '0.1.6'
4
+ s.date = '2012-11-03'
5
5
  s.summary = "Foursquare Rails Generators"
6
6
  s.description = "Collection of Rails generators for the Foursquare API"
7
7
  s.authors = ["Pierre Valade"]
@@ -9,13 +9,18 @@ module Foursquare
9
9
  argument :settings, type: :hash, banner: "client_id:id client_secret:secret"
10
10
 
11
11
  def validates_settings
12
- raise "incorret params" if settings['client_id'].blank? || settings['client_secret'].blank?
12
+ raise "incorret client_id or client_secret" if settings['client_id'].blank? || settings['client_secret'].blank?
13
13
  end
14
14
 
15
15
  def add_oauth2_gem
16
16
  gem 'oauth2'
17
17
  end
18
18
 
19
+ # hack around https://github.com/rails/rails/pull/5139
20
+ def self.next_migration_number(dirname)
21
+ ActiveRecord::Generators::Base.next_migration_number
22
+ end
23
+
19
24
  def create_foursquare_user_model
20
25
  migration_template 'migrations/create_foursquare_user.rb'
21
26
  template 'models/foursquare_user.rb', File.join('app/models/', 'foursquare_user.rb')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foursquare_rails_generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-26 00:00:00.000000000 Z
12
+ date: 2012-11-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Collection of Rails generators for the Foursquare API
15
15
  email: pierre@foursquare.com