Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Defining version, consumer group classes

  • Loading branch information...
commit bbc6610b1c7e0cf3b30c60e94291aa3a6f2d1f9c 1 parent 68d6024
luis manotas martinez authored
View
13 Gemfile
@@ -1,3 +1,12 @@
-source :gemcutter
+source "http://rubygems.org"
-gem 'httparty'
+gemspec
+gem 'rake'
+gem 'httparty'
+gem 'json'
+
+group :test do
+ gem 'rspec', '~>2.5.0', :require => 'spec'
+ gem 'rcov', '~>0.9.8'
+ gem 'webmock'
+end
View
5 Rakefile
@@ -1,3 +1,6 @@
require 'rubygems'
require 'rake'
-require 'bundler'
+require 'bundler'
+
+Bundler.setup(:default, :test)
+
View
1  init.rb
@@ -0,0 +1 @@
+require 'rhogallery-api'
View
5 lib/rhogallery-api.rb
@@ -0,0 +1,5 @@
+require 'json'
+require 'httparty'
+require 'rhogallery-api/version'
+require 'rhogallery-api/consumer'
+require 'rhogallery-api/group'
View
2  lib/rhogallery-api/consumer.rb
@@ -0,0 +1,2 @@
+class Consumer
+end
View
2  lib/rhogallery-api/group.rb
@@ -0,0 +1,2 @@
+class Group
+end
View
3  lib/rhogallery-api/version.rb
@@ -0,0 +1,3 @@
+module Rhogallery
+ VERSION = "0.0.1"
+end
View
27 rhogallery-api.gemspec
@@ -0,0 +1,27 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require 'rhogallery-api/version'
+
+Gem::Specification.new do |s|
+ s.name = "rhogallery-api"
+ s.version = Rhogallery::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Rhomobile"]
+ s.date = Time.now.strftime('%Y-%m-%d')
+ s.email = ["support@rhomobile.com"]
+ s.homepage = %q{http://rhomobile.com}
+ s.summary = %q{Rhoconnect rails plugin}
+ s.description = %q{Rhoconnect rails plugin}
+
+ s.rubyforge_project = nil
+ s.add_dependency('httparty', '~>0.7.7')
+ s.add_dependency('json', '~>1.5.4')
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.