cloudapp 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,26 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cloudapp (0.0.1)
5
+ main
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ arrayfields (4.7.4)
11
+ chronic (0.6.6)
12
+ fattr (2.2.1)
13
+ main (4.8.1)
14
+ arrayfields (~> 4.7.4)
15
+ chronic (~> 0.6.2)
16
+ fattr (~> 2.2.0)
17
+ map (~> 5.1.0)
18
+ map (5.1.0)
19
+ rake (0.9.2.2)
20
+
21
+ PLATFORMS
22
+ ruby
23
+
24
+ DEPENDENCIES
25
+ cloudapp!
26
+ rake
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Linebreak S.L.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
20
+
data/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # CloudApp CLI
2
+
3
+ Experience all the pleasures of sharing with CloudApp now in your terminal.
data/Rakefile ADDED
@@ -0,0 +1,128 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'date'
4
+
5
+ #############################################################################
6
+ #
7
+ # Helper functions
8
+ #
9
+ #############################################################################
10
+
11
+ def name
12
+ @name ||= Dir['*.gemspec'].first.split('.').first
13
+ end
14
+
15
+ def version
16
+ line = File.read("lib/#{name}.rb")[/^\s*VERSION\s*=\s*.*/]
17
+ line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
18
+ end
19
+
20
+ def date
21
+ Date.today.to_s
22
+ end
23
+
24
+ def rubyforge_project
25
+ name
26
+ end
27
+
28
+ def gemspec_file
29
+ "#{name}.gemspec"
30
+ end
31
+
32
+ def gem_file
33
+ "#{name}-#{version}.gem"
34
+ end
35
+
36
+ def replace_header(head, header_name)
37
+ head.sub!(/(\.#{header_name}\s*= ').*'/) { "#{$1}#{send(header_name)}'"}
38
+ end
39
+
40
+ #############################################################################
41
+ #
42
+ # Standard tasks
43
+ #
44
+ #############################################################################
45
+
46
+ # require 'rspec'
47
+ # require 'rspec/core/rake_task'
48
+
49
+ # desc "Run all specs"
50
+ # task RSpec::Core::RakeTask.new('spec')
51
+
52
+ # task :default => "spec"
53
+
54
+ #############################################################################
55
+ #
56
+ # Custom tasks (add your own tasks here)
57
+ #
58
+ #############################################################################
59
+
60
+
61
+
62
+ #############################################################################
63
+ #
64
+ # Packaging tasks
65
+ #
66
+ #############################################################################
67
+
68
+ desc "Create tag v#{version} and build and push #{gem_file} to Rubygems"
69
+ task :release => :build do
70
+ unless `git branch` =~ /^\* master$/
71
+ puts "You must be on the master branch to release!"
72
+ exit!
73
+ end
74
+ sh "git commit --allow-empty -a -m 'Release #{version}'"
75
+ sh "git tag v#{version}"
76
+ sh "git push origin master"
77
+ sh "git push origin v#{version}"
78
+ sh "gem push pkg/#{name}-#{version}.gem"
79
+ end
80
+
81
+ desc "Build #{gem_file} into the pkg directory"
82
+ task :build => :gemspec do
83
+ sh "mkdir -p pkg"
84
+ sh "gem build #{gemspec_file}"
85
+ sh "mv #{gem_file} pkg"
86
+ end
87
+
88
+ desc "Generate #{gemspec_file}"
89
+ task :gemspec => :validate do
90
+ # read spec file and split out manifest section
91
+ spec = File.read(gemspec_file)
92
+ head, manifest, tail = spec.split(" # = MANIFEST =\n")
93
+
94
+ # replace name version and date
95
+ replace_header(head, :name)
96
+ replace_header(head, :version)
97
+ replace_header(head, :date)
98
+ #comment this out if your rubyforge_project has a different name
99
+ replace_header(head, :rubyforge_project)
100
+
101
+ # determine file list from git ls-files
102
+ files = `git ls-files`.
103
+ split("\n").
104
+ sort.
105
+ reject { |file| file =~ /^\./ }.
106
+ reject { |file| file =~ /^(rdoc|pkg)/ }.
107
+ map { |file| " #{file}" }.
108
+ join("\n")
109
+
110
+ # piece file back together and write
111
+ manifest = " s.files = %w[\n#{files}\n ]\n"
112
+ spec = [head, manifest, tail].join(" # = MANIFEST =\n")
113
+ File.open(gemspec_file, 'w') { |io| io.write(spec) }
114
+ puts "Updated #{gemspec_file}"
115
+ end
116
+
117
+ desc "Validate #{gemspec_file}"
118
+ task :validate do
119
+ libfiles = Dir['lib/*'] - ["lib/#{name}.rb", "lib/#{name}"]
120
+ unless libfiles.empty?
121
+ puts "Directory `lib` should only contain a `#{name}.rb` file and `#{name}` dir."
122
+ exit!
123
+ end
124
+ unless Dir['VERSION*'].empty?
125
+ puts "A `VERSION` file at root level violates Gem best practices."
126
+ exit!
127
+ end
128
+ end
data/cloudapp.gemspec ADDED
@@ -0,0 +1,70 @@
1
+ ## This is the rakegem gemspec template. Make sure you read and understand
2
+ ## all of the comments. Some sections require modification, and others can
3
+ ## be deleted if you don't need them. Once you understand the contents of
4
+ ## this file, feel free to delete any comments that begin with two hash marks.
5
+ ## You can find comprehensive Gem::Specification documentation, at
6
+ ## http://docs.rubygems.org/read/chapter/20
7
+ Gem::Specification.new do |s|
8
+ s.specification_version = 2 if s.respond_to? :specification_version=
9
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10
+ s.rubygems_version = '1.3.5'
11
+
12
+ ## Leave these as is they will be modified for you by the rake gemspec task.
13
+ ## If your rubyforge_project name is different, then edit it and comment out
14
+ ## the sub! line in the Rakefile
15
+ s.name = 'cloudapp'
16
+ s.version = '0.0.1'
17
+ s.date = '2012-01-31'
18
+ s.rubyforge_project = 'cloudapp'
19
+
20
+ ## Make sure your summary is short. The description may be as long
21
+ ## as you like.
22
+ s.summary = "CloudApp CLI"
23
+ s.description = "Experience all the pleasures of sharing with CloudApp now in your terminal."
24
+
25
+ ## List the primary authors. If there are a bunch of authors, it's probably
26
+ ## better to set the email to an email list or something. If you don't have
27
+ ## a custom homepage, consider using your GitHub URL or the like.
28
+ s.authors = ["Larry Marburger"]
29
+ s.email = 'larry@marburger.cc'
30
+ s.homepage = 'https://github.com/cloudapp/cli'
31
+
32
+ ## This gets added to the $LOAD_PATH so that 'lib/NAME.rb' can be required as
33
+ ## require 'NAME.rb' or'/lib/NAME/file.rb' can be as require 'NAME/file.rb'
34
+ s.require_paths = %w[lib]
35
+
36
+ ## If your gem includes any executables, list them here.
37
+ # s.executables = ["name"]
38
+
39
+ ## Specify any RDoc options here. You'll want to add your README and
40
+ ## LICENSE files to the extra_rdoc_files list.
41
+ s.rdoc_options = ["--charset=UTF-8"]
42
+ s.extra_rdoc_files = %w[README.md MIT-LICENSE]
43
+
44
+ ## List your runtime dependencies here. Runtime dependencies are those
45
+ ## that are needed for an end user to actually USE your code.
46
+ s.add_dependency 'main'
47
+
48
+ ## List your development dependencies here. Development dependencies are
49
+ ## those that are only needed during development
50
+ s.add_development_dependency 'rake'
51
+
52
+ ## Leave this section as-is. It will be automatically generated from the
53
+ ## contents of your Git repository via the gemspec task. DO NOT REMOVE
54
+ ## THE MANIFEST COMMENTS, they are used as delimiters by the task.
55
+ # = MANIFEST =
56
+ s.files = %w[
57
+ Gemfile
58
+ Gemfile.lock
59
+ MIT-LICENSE
60
+ README.md
61
+ Rakefile
62
+ cloudapp.gemspec
63
+ lib/cloudapp.rb
64
+ ]
65
+ # = MANIFEST =
66
+
67
+ ## Test files will be grabbed from the file list. Make sure the path glob
68
+ ## matches what you actually use.
69
+ # s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
70
+ end
data/lib/cloudapp.rb ADDED
@@ -0,0 +1,3 @@
1
+ module CloudApp
2
+ VERSION = '0.0.1'
3
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cloudapp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Larry Marburger
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-01-31 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: main
16
+ requirement: &70193460088600 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70193460088600
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &70193460087680 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70193460087680
36
+ description: Experience all the pleasures of sharing with CloudApp now in your terminal.
37
+ email: larry@marburger.cc
38
+ executables: []
39
+ extensions: []
40
+ extra_rdoc_files:
41
+ - README.md
42
+ - MIT-LICENSE
43
+ files:
44
+ - Gemfile
45
+ - Gemfile.lock
46
+ - MIT-LICENSE
47
+ - README.md
48
+ - Rakefile
49
+ - cloudapp.gemspec
50
+ - lib/cloudapp.rb
51
+ homepage: https://github.com/cloudapp/cli
52
+ licenses: []
53
+ post_install_message:
54
+ rdoc_options:
55
+ - --charset=UTF-8
56
+ require_paths:
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ requirements: []
71
+ rubyforge_project: cloudapp
72
+ rubygems_version: 1.8.15
73
+ signing_key:
74
+ specification_version: 2
75
+ summary: CloudApp CLI
76
+ test_files: []