airplane_mode 0.0.1.a

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use 1.8.7@airplane_mode --create
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in airplane_mode.gemspec
4
+ gemspec
data/README.rdoc ADDED
@@ -0,0 +1,44 @@
1
+ = AirplaneMode
2
+
3
+ Gather Ruby documentation for offline viewing.
4
+
5
+ Don't waste people's bandwidth by mirroring with +wget+. AirplaneMode is a collection of server-friendly ways of obtaining offline documentation.
6
+
7
+ AirplaneMode is currently early in development. If you're interested, please *become* *a* *watcher*!
8
+
9
+ == Features
10
+
11
+ === Planned
12
+
13
+ * Torrent for common packages
14
+ * Offline Ruby API (from http://ruby-doc.org/downloads/)
15
+ * Offline Rdocs (via +rdoc+, +yard+, +bdoc+, +gem+ +server+, or something similar)
16
+ * Maybe something from http://railsbrain.com/ ?
17
+ * Offline Rails Docs (anything beyond what the docs for the gem provides? +rake+ +rails:doc+)
18
+ * Offline Rails Guides (from +rails/railties/guides/rails_guides.rb+, or maybe just +rake+ +doc:guides+)
19
+
20
+ Code (from http://stackoverflow.com/questions/4506019/rails-3-guides-rubyonrails-org-in-pdf):
21
+
22
+ # sudo gem install rails
23
+ # sudo apt-get install ruby1.8-dev # required for RedCloth
24
+ # sudo gem install RedCloth
25
+ git clone git://github.com/rails/rails.git
26
+ cd rails
27
+ git checkout origin/3-0-stable -b 3-0-stable
28
+ cd railties/guides
29
+ ruby rails_guides.rb
30
+ cd output
31
+ open index.html
32
+
33
+ * Maybe clone watched repos code (and wikis!) from GitHub
34
+ * Top 100 gems (gems, docs, etc -- so it's harder to be stuck without a dependency)
35
+ * Search (of the static HTML -- not sure of approach right now)
36
+
37
+ == Related
38
+
39
+ * http://railsapi.com/
40
+ * http://jasonseifer.com/2009/02/22/offline-gem-server-rdocs
41
+ * https://github.com/jnewland/sinatra-rubygems
42
+ * http://stackoverflow.com/questions/2439170/ruby-and-ruby-on-rails-offline-api-documentation
43
+ * http://stackoverflow.com/questions/5752617/rails-guides-offline-documentation
44
+ * http://stackoverflow.com/questions/4506019/rails-3-guides-rubyonrails-org-in-pdf
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "airplane_mode/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "airplane_mode"
7
+ s.version = AirplaneMode::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Benjamin Oakes"]
10
+ s.email = ["hello@benjaminoakes.com"]
11
+ s.homepage = "http://github.com/benjaminoakes/airplane_mode"
12
+ s.summary = %q{Gather Ruby documentation for offline viewing}
13
+ s.description = s.summary
14
+
15
+ s.rubyforge_project = "airplane_mode"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+
22
+ s.add_dependency('thor', '~> 0.14.6')
23
+ s.add_development_dependency('rake', '~> 0.9.2.2')
24
+ end
data/configure ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -o errexit
3
+ # Assumes rvm:
4
+ # gem install bundler --version "~> 1.0" --no-rdoc --no-ri
5
+ bundle install
@@ -0,0 +1,5 @@
1
+ require "airplane_mode/version"
2
+
3
+ module AirplaneMode
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,3 @@
1
+ module AirplaneMode
2
+ VERSION = "0.0.1.a"
3
+ end
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: airplane_mode
3
+ version: !ruby/object:Gem::Version
4
+ hash: 46
5
+ prerelease: 6
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ - a
11
+ version: 0.0.1.a
12
+ platform: ruby
13
+ authors:
14
+ - Benjamin Oakes
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2011-11-26 00:00:00 Z
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: thor
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 43
30
+ segments:
31
+ - 0
32
+ - 14
33
+ - 6
34
+ version: 0.14.6
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: rake
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 11
46
+ segments:
47
+ - 0
48
+ - 9
49
+ - 2
50
+ - 2
51
+ version: 0.9.2.2
52
+ type: :development
53
+ version_requirements: *id002
54
+ description: Gather Ruby documentation for offline viewing
55
+ email:
56
+ - hello@benjaminoakes.com
57
+ executables: []
58
+
59
+ extensions: []
60
+
61
+ extra_rdoc_files: []
62
+
63
+ files:
64
+ - .gitignore
65
+ - .rvmrc
66
+ - Gemfile
67
+ - README.rdoc
68
+ - Rakefile
69
+ - airplane_mode.gemspec
70
+ - configure
71
+ - lib/airplane_mode.rb
72
+ - lib/airplane_mode/version.rb
73
+ homepage: http://github.com/benjaminoakes/airplane_mode
74
+ licenses: []
75
+
76
+ post_install_message:
77
+ rdoc_options: []
78
+
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ hash: 3
87
+ segments:
88
+ - 0
89
+ version: "0"
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ">"
94
+ - !ruby/object:Gem::Version
95
+ hash: 25
96
+ segments:
97
+ - 1
98
+ - 3
99
+ - 1
100
+ version: 1.3.1
101
+ requirements: []
102
+
103
+ rubyforge_project: airplane_mode
104
+ rubygems_version: 1.8.11
105
+ signing_key:
106
+ specification_version: 3
107
+ summary: Gather Ruby documentation for offline viewing
108
+ test_files: []
109
+