cocoapods-repo-ram 0.0.3 → 0.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25254615339aec25f254ae5aded2c4abe215bcad
4
- data.tar.gz: ca4426cd56e766653187a6cec3a185169a41d869
3
+ metadata.gz: 71e085bcf58bf1b5487edf67a2b0367c1ed344a6
4
+ data.tar.gz: 5e3bcdaa5095ee5b23310d7d4eb604af60da7000
5
5
  SHA512:
6
- metadata.gz: 682791e4dce3460c0bec3cf0a0c943e94e2b6df79ea312f1012af70be29e63acc5da3d2a3db589e1a025512c25aea7e1ccff7e0eb7d46ec80e2965b66aeeeb79
7
- data.tar.gz: dcab716ee829804e2233f8a6839055762172fd3cf781db239333e7f5ee491615ec1a934c86de8e7d1bdd8b719b828469a09c198c77ca7d9a09793884a6efedb3
6
+ metadata.gz: cf9d3298ac8b1962419fc126740a5f5ba9599cafc461121b842a4d9b838982b679f1d85e10fa4b5b58c698bbadae63308a5ca92af3ece9b6fa981d8e576ab37f
7
+ data.tar.gz: 3579ac46564440aa6de7370f76d7bb7e935ceb7ee460d894cd68e2f404b328956bb47340017c5e701ab7e112ddf9cc5bd4cab5d6d9453156dbab9607d7dc8667
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ .DS_Store
2
+ pkg
3
+ .idea/
4
+ lib/config.yml
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ ruby '2.1.2'
2
+ #ruby=2.1.2@pods_ram
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in cocoapods-repo-ram.gemspec
6
+ gemspec
7
+
8
+ group :development do
9
+ gem 'cocoapods'
10
+ gem 'bacon'
11
+ gem 'colorize'
12
+ end
13
+
data/Gemfile.lock ADDED
@@ -0,0 +1,70 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cocoapods-repo-ram (0.0.4)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ activesupport (4.2.0)
10
+ i18n (~> 0.7)
11
+ json (~> 1.7, >= 1.7.7)
12
+ minitest (~> 5.1)
13
+ thread_safe (~> 0.3, >= 0.3.4)
14
+ tzinfo (~> 1.1)
15
+ bacon (1.2.0)
16
+ claide (0.7.0)
17
+ cocoapods (0.35.0)
18
+ activesupport (>= 3.2.15)
19
+ claide (~> 0.7.0)
20
+ cocoapods-core (= 0.35.0)
21
+ cocoapods-downloader (~> 0.8.0)
22
+ cocoapods-plugins (~> 0.3.1)
23
+ cocoapods-trunk (~> 0.4.1)
24
+ cocoapods-try (~> 0.4.2)
25
+ colored (~> 1.2)
26
+ escape (~> 0.0.4)
27
+ molinillo (~> 0.1.2)
28
+ nap (~> 0.8)
29
+ open4 (~> 1.3)
30
+ xcodeproj (~> 0.20.2)
31
+ cocoapods-core (0.35.0)
32
+ activesupport (>= 3.2.15)
33
+ fuzzy_match (~> 2.0.4)
34
+ nap (~> 0.8.0)
35
+ cocoapods-downloader (0.8.1)
36
+ cocoapods-plugins (0.3.2)
37
+ nap
38
+ cocoapods-trunk (0.4.1)
39
+ nap (>= 0.8)
40
+ netrc (= 0.7.8)
41
+ cocoapods-try (0.4.3)
42
+ colored (1.2)
43
+ colorize (0.7.5)
44
+ escape (0.0.4)
45
+ fuzzy_match (2.0.4)
46
+ i18n (0.7.0)
47
+ json (1.8.2)
48
+ minitest (5.5.1)
49
+ molinillo (0.1.2)
50
+ nap (0.8.0)
51
+ netrc (0.7.8)
52
+ open4 (1.3.4)
53
+ rake (10.4.2)
54
+ thread_safe (0.3.4)
55
+ tzinfo (1.2.2)
56
+ thread_safe (~> 0.1)
57
+ xcodeproj (0.20.2)
58
+ activesupport (>= 3)
59
+ colored (~> 1.2)
60
+
61
+ PLATFORMS
62
+ ruby
63
+
64
+ DEPENDENCIES
65
+ bacon
66
+ bundler (~> 1.3)
67
+ cocoapods
68
+ cocoapods-repo-ram!
69
+ colorize
70
+ rake
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Ton Frameworks
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Ilton Garcia dos Santos Silveira <ilton_unb@hotmail.com>
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # cocoapods-repo-ram
2
+
3
+ A description of cocoapods-repo-ram.
4
+
5
+ ## Installation
6
+
7
+ $ gem install cocoapods-repo-ram
8
+
9
+ ## Usage
10
+
11
+ $ pod spec ram POD_NAME
data/Rakefile ADDED
@@ -0,0 +1,13 @@
1
+ require 'bundler/gem_tasks'
2
+ Dir.glob('lib/tasks/*.rake').each {|r| import r}
3
+
4
+ def specs(dir)
5
+ FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
6
+ end
7
+
8
+ desc 'Runs all the specs'
9
+ task :specs do
10
+ sh "bundle exec bacon #{specs('**')}"
11
+ end
12
+
13
+ task :default => :specs
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cocoapods-repo-ram/gem_version.rb'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "cocoapods-repo-ram"
8
+ spec.version = CocoapodsRepoRam::VERSION
9
+ spec.authors = ["Ilton Garcia dos Santos Silveira"]
10
+ spec.email = ["ilton_unb@hotmail.com"]
11
+ spec.description = %q{A short description of cocoapods-repo-ram.}
12
+ spec.summary = %q{A longer description of cocoapods-repo-ram.}
13
+ spec.homepage = "https://github.com/EXAMPLE/cocoapods-repo-ram"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
@@ -0,0 +1 @@
1
+ require 'cocoapods-repo-ram/gem_version'
@@ -0,0 +1 @@
1
+ require 'cocoapods-repo-ram/command/ram.rb'
@@ -0,0 +1,82 @@
1
+ require 'colorize'
2
+ module Pod
3
+ class Command
4
+ # This is an example of a cocoapods plugin adding a top-level subcommand
5
+ # to the 'pod' command.
6
+ #
7
+ # You can also create subcommands of existing or new commands. Say you
8
+ # wanted to add a subcommand to `list` to show newly deprecated pods,
9
+ # (e.g. `pod list deprecated`), there are a few things that would need
10
+ # to change.
11
+ #
12
+ # - move this file to `lib/pod/command/list/deprecated.rb` and update
13
+ # the class to exist in the the Pod::Command::List namespace
14
+ # - change this class to extend from `List` instead of `Command`. This
15
+ # tells the plugin system that it is a subcommand of `list`.
16
+ # - edit `lib/cocoapods_plugins.rb` to require this file
17
+ #
18
+ # @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
19
+ # in the `plugins.json` file, once your plugin is released.
20
+ #
21
+ class Ram < Command
22
+ self.summary = "CocoaPods PlugIn to get dependencies on the RAM repository."
23
+ self.description = <<-DESC
24
+ The CocoaPods PlugIn for RAM was created by ton.garcia.jr@gmail.com & is used to:\n
25
+ 1. Create a repo workspace;
26
+ 2. Get dependencies from the RAM repository;
27
+ 3. Update the version of the dependencies from the RAM repo;
28
+ 4. Test dependencies folder structure (Lint).
29
+ DESC
30
+
31
+ self.arguments = 'NAME'
32
+
33
+ # CocoaPods Add command implementation
34
+ class Add < Ram
35
+ self.summary = Ram.description
36
+ self.description = Ram.description
37
+
38
+ self.arguments = [
39
+ CLAide::Argument.new('NAME', true),
40
+ CLAide::Argument.new('URL', true)
41
+ ]
42
+
43
+ def initialize(argv)
44
+ @name, @url = argv.shift_argument, argv.shift_argument
45
+ super
46
+ end
47
+
48
+ def validate!
49
+ super
50
+ unless @name && @url
51
+ help! "Adding a spec-repo needs a `NAME` and a `URL`."
52
+ end
53
+ end
54
+
55
+ def run
56
+ UI.section("Checking out spec-repo `#{@name}` from `#{@url}` using RAM Connector") do
57
+ puts "\tRAM add command for spec-repo '#{@name}' from '#{@url}' just started".green
58
+ config.repos_dir.mkpath
59
+ Dir.chdir(config.repos_dir) do
60
+ #command = "checkout --non-interactive --trust-server-cert '#{@url}' #{@name}"
61
+ #!svn(command)
62
+ end
63
+ end
64
+ end
65
+ end
66
+
67
+ # def initialize(argv)
68
+ # @name = argv.shift_argument
69
+ # super
70
+ # end
71
+ #
72
+ # def validate!
73
+ # super
74
+ # help! "A Pod name is required." unless @name
75
+ # end
76
+ #
77
+ # def run
78
+ # UI.puts "Add your implementation for the cocoapods-repo-ram plugin in #{__FILE__}"
79
+ # end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,6 @@
1
+ module CocoapodsRepoRam
2
+ MAJOR = 0
3
+ MINOR = 0
4
+ PATCH = 4
5
+ VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
6
+ end
@@ -0,0 +1 @@
1
+ require 'cocoapods-repo-ram/command.rb'
File without changes
@@ -0,0 +1,29 @@
1
+ require 'colorize'
2
+
3
+ desc "RAM Pods PlugIn commands to easy debug"
4
+ namespace :ram do
5
+ # Vars to help while executing tasks
6
+ @repo_name = 'ram-repo'
7
+ @repo_url = 'http://localhost'
8
+
9
+ desc "RAM add: useful to create a repo on ~/.cocoapods/repos/NAME"
10
+ task :add do
11
+ puts 'RAM:Add running'.light_yellow
12
+ # Call executed here!
13
+ puts("Command executed:\npods pod ram add #{@repo_name} #{@repo_url}".green)
14
+ end
15
+
16
+ desc "RAM update: useful to update the dependencies version on your project"
17
+ task :update do
18
+ puts 'RAM:Update running'.light_yellow
19
+ # Call executed here!
20
+ puts("Command executed:\npods pod ram add #{@repo_name} #{@repo_url}".green)
21
+ end
22
+
23
+ desc "RAM lint: useful to check if the dependencies folder structure are OK"
24
+ task :lint do
25
+ puts 'RAM:Lint running'.light_yellow
26
+ # Call executed here!
27
+ puts("Command executed:\npods pod ram add #{@repo_name} #{@repo_url}".green)
28
+ end
29
+ end
@@ -0,0 +1,12 @@
1
+ require File.expand_path('../../spec_helper', __FILE__)
2
+
3
+ module Pod
4
+ describe Command::Ram do
5
+ describe 'CLAide' do
6
+ it 'registers it self' do
7
+ Command.parse(%w{ ram }).should.be.instance_of Command::Ram
8
+ end
9
+ end
10
+ end
11
+ end
12
+
@@ -0,0 +1,45 @@
1
+ require 'pathname'
2
+ ROOT = Pathname.new(File.expand_path('../../', __FILE__))
3
+ $:.unshift((ROOT + 'lib').to_s)
4
+ $:.unshift((ROOT + 'spec').to_s)
5
+
6
+ require 'bundler/setup'
7
+ require 'bacon'
8
+ require 'cocoapods'
9
+
10
+ require 'cocoapods_plugin'
11
+
12
+ #-----------------------------------------------------------------------------#
13
+
14
+ module Pod
15
+
16
+ # Disable the wrapping so the output is deterministic in the tests.
17
+ #
18
+ UI.disable_wrap = true
19
+
20
+ # Redirects the messages to an internal store.
21
+ #
22
+ module UI
23
+ @output = ''
24
+ @warnings = ''
25
+
26
+ class << self
27
+ attr_accessor :output
28
+ attr_accessor :warnings
29
+
30
+ def puts(message = '')
31
+ @output << "#{message}\n"
32
+ end
33
+
34
+ def warn(message = '', actions = [])
35
+ @warnings << "#{message}\n"
36
+ end
37
+
38
+ def print(message)
39
+ @output << message
40
+ end
41
+ end
42
+ end
43
+ end
44
+
45
+ #-----------------------------------------------------------------------------#
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-repo-ram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
- - Ilton Garcia
7
+ - Ilton Garcia dos Santos Silveira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
@@ -38,74 +38,31 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '3.1'
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: 3.1.0
51
- type: :development
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
54
- requirements:
55
- - - "~>"
56
- - !ruby/object:Gem::Version
57
- version: '3.1'
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: 3.1.0
61
- - !ruby/object:Gem::Dependency
62
- name: simplecov
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '0.7'
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- version: 0.7.1
71
- type: :development
72
- prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
74
- requirements:
75
- - - "~>"
76
- - !ruby/object:Gem::Version
77
- version: '0.7'
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: 0.7.1
81
- - !ruby/object:Gem::Dependency
82
- name: faker
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '1.4'
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: 1.4.2
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: '1.4'
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: 1.4.2
101
- description: CocoaPod plugin to add RAM support for spec repositories
41
+ description: A short description of cocoapods-repo-ram.
102
42
  email:
103
- - ton.garcia.jr@gmail.com
43
+ - ilton_unb@hotmail.com
104
44
  executables: []
105
45
  extensions: []
106
46
  extra_rdoc_files: []
107
- files: []
108
- homepage: https://github.com/TonGarcia/cocoapods-repo-ram
47
+ files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - Gemfile.lock
51
+ - LICENSE
52
+ - LICENSE.txt
53
+ - README.md
54
+ - Rakefile
55
+ - cocoapods-repo-ram.gemspec
56
+ - lib/cocoapods-repo-ram.rb
57
+ - lib/cocoapods-repo-ram/command.rb
58
+ - lib/cocoapods-repo-ram/command/ram.rb
59
+ - lib/cocoapods-repo-ram/gem_version.rb
60
+ - lib/cocoapods_plugin.rb
61
+ - lib/config.example.yml
62
+ - lib/tasks/commands.rake
63
+ - spec/command/ram_spec.rb
64
+ - spec/spec_helper.rb
65
+ homepage: https://github.com/EXAMPLE/cocoapods-repo-ram
109
66
  licenses:
110
67
  - MIT
111
68
  metadata: {}
@@ -128,5 +85,7 @@ rubyforge_project:
128
85
  rubygems_version: 2.2.2
129
86
  signing_key:
130
87
  specification_version: 4
131
- summary: RAM support for spec repository
132
- test_files: []
88
+ summary: A longer description of cocoapods-repo-ram.
89
+ test_files:
90
+ - spec/command/ram_spec.rb
91
+ - spec/spec_helper.rb