github-widget 1.0.0

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.
Files changed (81) hide show
  1. data/.gitignore +1 -0
  2. data/README.md +92 -0
  3. data/app/assets/images/github-widget/public.png +0 -0
  4. data/app/assets/images/github-widget/public_fork.png +0 -0
  5. data/app/assets/images/github-widget/repostat_forks.png +0 -0
  6. data/app/assets/images/github-widget/repostat_watchers.png +0 -0
  7. data/app/assets/javascripts/github-widget/projects.js.coffee +16 -0
  8. data/app/assets/stylesheets/github-widget/projects.css.sass.erb +95 -0
  9. data/app/views/github-widget/_projects.hbs +38 -0
  10. data/develop-example/.gitignore +5 -0
  11. data/develop-example/Gemfile +44 -0
  12. data/develop-example/Gemfile.lock +139 -0
  13. data/develop-example/README +261 -0
  14. data/develop-example/Rakefile +7 -0
  15. data/develop-example/app/assets/images/rails.png +0 -0
  16. data/develop-example/app/assets/javascripts/application.js +12 -0
  17. data/develop-example/app/assets/javascripts/github-widget/projects.js.coffee +16 -0
  18. data/develop-example/app/assets/javascripts/home.js.coffee +3 -0
  19. data/develop-example/app/assets/javascripts/plugins.js.coffee +20 -0
  20. data/develop-example/app/assets/stylesheets/application.css +292 -0
  21. data/develop-example/app/assets/stylesheets/home.css.scss +8 -0
  22. data/develop-example/app/controllers/application_controller.rb +3 -0
  23. data/develop-example/app/controllers/home_controller.rb +5 -0
  24. data/develop-example/app/helpers/application_helper.rb +2 -0
  25. data/develop-example/app/helpers/home_helper.rb +2 -0
  26. data/develop-example/app/mailers/.gitkeep +0 -0
  27. data/develop-example/app/models/.gitkeep +0 -0
  28. data/develop-example/app/views/github_widget/_projects.hbs +38 -0
  29. data/develop-example/app/views/home/index.html.erb +0 -0
  30. data/develop-example/app/views/layouts/application.html.erb +62 -0
  31. data/develop-example/config.ru +4 -0
  32. data/develop-example/config/application.rb +42 -0
  33. data/develop-example/config/boot.rb +6 -0
  34. data/develop-example/config/database.yml +25 -0
  35. data/develop-example/config/environment.rb +5 -0
  36. data/develop-example/config/environments/development.rb +27 -0
  37. data/develop-example/config/environments/production.rb +54 -0
  38. data/develop-example/config/environments/test.rb +39 -0
  39. data/develop-example/config/initializers/backtrace_silencers.rb +7 -0
  40. data/develop-example/config/initializers/inflections.rb +10 -0
  41. data/develop-example/config/initializers/mime_types.rb +5 -0
  42. data/develop-example/config/initializers/secret_token.rb +7 -0
  43. data/develop-example/config/initializers/session_store.rb +8 -0
  44. data/develop-example/config/initializers/wrap_parameters.rb +12 -0
  45. data/develop-example/config/locales/en.yml +5 -0
  46. data/develop-example/config/routes.rb +60 -0
  47. data/develop-example/db/seeds.rb +7 -0
  48. data/develop-example/doc/README_FOR_APP +2 -0
  49. data/develop-example/lib/tasks/.gitkeep +0 -0
  50. data/develop-example/log/.gitkeep +0 -0
  51. data/develop-example/public/.htaccess +522 -0
  52. data/develop-example/public/404.html +26 -0
  53. data/develop-example/public/422.html +26 -0
  54. data/develop-example/public/500.html +26 -0
  55. data/develop-example/public/apple-touch-icon-114x114-precomposed.png +0 -0
  56. data/develop-example/public/apple-touch-icon-57x57-precomposed.png +0 -0
  57. data/develop-example/public/apple-touch-icon-72x72-precomposed.png +0 -0
  58. data/develop-example/public/apple-touch-icon-precomposed.png +0 -0
  59. data/develop-example/public/apple-touch-icon.png +0 -0
  60. data/develop-example/public/crossdomain.xml +25 -0
  61. data/develop-example/public/favicon.ico +0 -0
  62. data/develop-example/public/humans.txt +43 -0
  63. data/develop-example/public/robots.txt +5 -0
  64. data/develop-example/script/rails +6 -0
  65. data/develop-example/test/fixtures/.gitkeep +0 -0
  66. data/develop-example/test/functional/.gitkeep +0 -0
  67. data/develop-example/test/functional/home_controller_test.rb +9 -0
  68. data/develop-example/test/integration/.gitkeep +0 -0
  69. data/develop-example/test/performance/browsing_test.rb +12 -0
  70. data/develop-example/test/test_helper.rb +13 -0
  71. data/develop-example/test/unit/.gitkeep +0 -0
  72. data/develop-example/test/unit/helpers/home_helper_test.rb +4 -0
  73. data/develop-example/vendor/assets/stylesheets/.gitkeep +0 -0
  74. data/develop-example/vendor/plugins/.gitkeep +0 -0
  75. data/github-widget.gemspec +21 -0
  76. data/lib/generators/github_widget/USAGE +11 -0
  77. data/lib/generators/github_widget/github_widget_generator.rb +10 -0
  78. data/lib/github-widget.rb +4 -0
  79. data/lib/github-widget/version.rb +9 -0
  80. data/snapshot.png +0 -0
  81. metadata +135 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0"?>
2
+ <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
3
+ <cross-domain-policy>
4
+
5
+
6
+ <!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
7
+
8
+ <!-- Most restrictive policy: -->
9
+ <site-control permitted-cross-domain-policies="none"/>
10
+
11
+
12
+
13
+ <!-- Least restrictive policy: -->
14
+ <!--
15
+ <site-control permitted-cross-domain-policies="all"/>
16
+ <allow-access-from domain="*" to-ports="*" secure="false"/>
17
+ <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
18
+ -->
19
+ <!--
20
+ If you host a crossdomain.xml file with allow-access-from domain="*"
21
+ and don’t understand all of the points described here, you probably
22
+ have a nasty security vulnerability. ~ simon willison
23
+ -->
24
+
25
+ </cross-domain-policy>
File without changes
@@ -0,0 +1,43 @@
1
+ /* the humans responsible & colophon */
2
+ /* humanstxt.org */
3
+
4
+
5
+ /* TEAM */
6
+ <your title>: <your name>
7
+ Site:
8
+ Twitter:
9
+ Location:
10
+
11
+ /* THANKS */
12
+ Names (& URL):
13
+
14
+ /* SITE */
15
+ Standards: HTML5, CSS3
16
+ Components: Modernizr, jQuery
17
+ Software:
18
+
19
+
20
+
21
+ -o/-
22
+ +oo//-
23
+ :ooo+//:
24
+ -ooooo///-
25
+ /oooooo//:
26
+ :ooooooo+//-
27
+ -+oooooooo///-
28
+ -://////////////+oooooooooo++////////////::
29
+ :+ooooooooooooooooooooooooooooooooooooo+:::-
30
+ -/+ooooooooooooooooooooooooooooooo+/::////:-
31
+ -:+oooooooooooooooooooooooooooo/::///////:-
32
+ --/+ooooooooooooooooooooo+::://////:-
33
+ -:+ooooooooooooooooo+:://////:--
34
+ /ooooooooooooooooo+//////:-
35
+ -ooooooooooooooooooo////-
36
+ /ooooooooo+oooooooooo//:
37
+ :ooooooo+/::/+oooooooo+//-
38
+ -oooooo/::///////+oooooo///-
39
+ /ooo+::://////:---:/+oooo//:
40
+ -o+/::///////:- -:/+o+//-
41
+ :-:///////:- -:/://
42
+ -////:- --//:
43
+ -- -:
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
File without changes
File without changes
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class HomeControllerTest < ActionController::TestCase
4
+ test "should get index" do
5
+ get :index
6
+ assert_response :success
7
+ end
8
+
9
+ end
File without changes
@@ -0,0 +1,12 @@
1
+ require 'test_helper'
2
+ require 'rails/performance_test_help'
3
+
4
+ class BrowsingTest < ActionDispatch::PerformanceTest
5
+ # Refer to the documentation for all available options
6
+ # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
7
+ # :output => 'tmp/performance', :formats => [:flat] }
8
+
9
+ def test_homepage
10
+ get '/'
11
+ end
12
+ end
@@ -0,0 +1,13 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
7
+ #
8
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
9
+ # -- they do not yet inherit this setting
10
+ fixtures :all
11
+
12
+ # Add more helper methods to be used by all tests here...
13
+ end
File without changes
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class HomeHelperTest < ActionView::TestCase
4
+ end
File without changes
@@ -0,0 +1,21 @@
1
+ $: << "lib"
2
+ require "github-widget/version"
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "github-widget"
6
+ s.version = GithubWidget::VERSION::IS
7
+ s.summary = "a client-side, complete Github Widget."
8
+
9
+ s.description = <<-EOF
10
+ a client-side, complete Github Widget, include reposotires, user activities, .... developping with Sproutcore2.0, Rails3.1, Coffeescript, Sass, HTML5.
11
+ EOF
12
+
13
+ s.author = "Guten"
14
+ s.email = "ywzhaifei@gmail.com"
15
+ s.homepage = "http://github.com/GutenYe/github-widget"
16
+ s.rubyforge_project = "xx"
17
+
18
+ s.files = `git ls-files`.split("\n")
19
+
20
+ #s.add_dependency "pd"
21
+ end
@@ -0,0 +1,11 @@
1
+ Description:
2
+ generate github-widget source code.
3
+
4
+ Example:
5
+ rails generate github_widget
6
+
7
+ This will create:
8
+
9
+ app/assets/javascripts/github-widget/projects.js.coffee
10
+ app/assets/stylesheets/github-widget/projects.css.sass.erb
11
+ ...
@@ -0,0 +1,10 @@
1
+ class GithubWidgetGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../../../../app/assets', __FILE__)
3
+ #argument :file_name, :type => :string
4
+ #class_option :stylesheet, :type => :boolean, :default => true, :description => "x"
5
+
6
+ def init
7
+ directory ".", "app/assets"
8
+ end
9
+
10
+ end
@@ -0,0 +1,4 @@
1
+ module GithubWidget
2
+ class Engine < Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,9 @@
1
+ module GithubWidget
2
+ module VERSION
3
+ MAJOR = 1
4
+ MINOR = 0
5
+ PATCH = 0
6
+
7
+ IS = [ MAJOR, MINOR, PATCH ].join('.')
8
+ end
9
+ end
data/snapshot.png ADDED
Binary file
metadata ADDED
@@ -0,0 +1,135 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: github-widget
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 1.0.0
6
+ platform: ruby
7
+ authors:
8
+ - Guten
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-07-07 00:00:00 Z
14
+ dependencies: []
15
+
16
+ description: |
17
+ a client-side, complete Github Widget, include reposotires, user activities, .... developping with Sproutcore2.0, Rails3.1, Coffeescript, Sass, HTML5.
18
+
19
+ email: ywzhaifei@gmail.com
20
+ executables: []
21
+
22
+ extensions: []
23
+
24
+ extra_rdoc_files: []
25
+
26
+ files:
27
+ - .gitignore
28
+ - README.md
29
+ - app/assets/images/github-widget/public.png
30
+ - app/assets/images/github-widget/public_fork.png
31
+ - app/assets/images/github-widget/repostat_forks.png
32
+ - app/assets/images/github-widget/repostat_watchers.png
33
+ - app/assets/javascripts/github-widget/projects.js.coffee
34
+ - app/assets/stylesheets/github-widget/projects.css.sass.erb
35
+ - app/views/github-widget/_projects.hbs
36
+ - develop-example/.gitignore
37
+ - develop-example/Gemfile
38
+ - develop-example/Gemfile.lock
39
+ - develop-example/README
40
+ - develop-example/Rakefile
41
+ - develop-example/app/assets/images/rails.png
42
+ - develop-example/app/assets/javascripts/application.js
43
+ - develop-example/app/assets/javascripts/github-widget/projects.js.coffee
44
+ - develop-example/app/assets/javascripts/home.js.coffee
45
+ - develop-example/app/assets/javascripts/plugins.js.coffee
46
+ - develop-example/app/assets/stylesheets/application.css
47
+ - develop-example/app/assets/stylesheets/home.css.scss
48
+ - develop-example/app/controllers/application_controller.rb
49
+ - develop-example/app/controllers/home_controller.rb
50
+ - develop-example/app/helpers/application_helper.rb
51
+ - develop-example/app/helpers/home_helper.rb
52
+ - develop-example/app/mailers/.gitkeep
53
+ - develop-example/app/models/.gitkeep
54
+ - develop-example/app/views/github_widget/_projects.hbs
55
+ - develop-example/app/views/home/index.html.erb
56
+ - develop-example/app/views/layouts/application.html.erb
57
+ - develop-example/config.ru
58
+ - develop-example/config/application.rb
59
+ - develop-example/config/boot.rb
60
+ - develop-example/config/database.yml
61
+ - develop-example/config/environment.rb
62
+ - develop-example/config/environments/development.rb
63
+ - develop-example/config/environments/production.rb
64
+ - develop-example/config/environments/test.rb
65
+ - develop-example/config/initializers/backtrace_silencers.rb
66
+ - develop-example/config/initializers/inflections.rb
67
+ - develop-example/config/initializers/mime_types.rb
68
+ - develop-example/config/initializers/secret_token.rb
69
+ - develop-example/config/initializers/session_store.rb
70
+ - develop-example/config/initializers/wrap_parameters.rb
71
+ - develop-example/config/locales/en.yml
72
+ - develop-example/config/routes.rb
73
+ - develop-example/db/seeds.rb
74
+ - develop-example/doc/README_FOR_APP
75
+ - develop-example/lib/tasks/.gitkeep
76
+ - develop-example/log/.gitkeep
77
+ - develop-example/public/.htaccess
78
+ - develop-example/public/404.html
79
+ - develop-example/public/422.html
80
+ - develop-example/public/500.html
81
+ - develop-example/public/apple-touch-icon-114x114-precomposed.png
82
+ - develop-example/public/apple-touch-icon-57x57-precomposed.png
83
+ - develop-example/public/apple-touch-icon-72x72-precomposed.png
84
+ - develop-example/public/apple-touch-icon-precomposed.png
85
+ - develop-example/public/apple-touch-icon.png
86
+ - develop-example/public/crossdomain.xml
87
+ - develop-example/public/favicon.ico
88
+ - develop-example/public/humans.txt
89
+ - develop-example/public/robots.txt
90
+ - develop-example/script/rails
91
+ - develop-example/test/fixtures/.gitkeep
92
+ - develop-example/test/functional/.gitkeep
93
+ - develop-example/test/functional/home_controller_test.rb
94
+ - develop-example/test/integration/.gitkeep
95
+ - develop-example/test/performance/browsing_test.rb
96
+ - develop-example/test/test_helper.rb
97
+ - develop-example/test/unit/.gitkeep
98
+ - develop-example/test/unit/helpers/home_helper_test.rb
99
+ - develop-example/vendor/assets/stylesheets/.gitkeep
100
+ - develop-example/vendor/plugins/.gitkeep
101
+ - github-widget.gemspec
102
+ - lib/generators/github_widget/USAGE
103
+ - lib/generators/github_widget/github_widget_generator.rb
104
+ - lib/github-widget.rb
105
+ - lib/github-widget/version.rb
106
+ - snapshot.png
107
+ homepage: http://github.com/GutenYe/github-widget
108
+ licenses: []
109
+
110
+ post_install_message:
111
+ rdoc_options: []
112
+
113
+ require_paths:
114
+ - lib
115
+ required_ruby_version: !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: "0"
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: "0"
127
+ requirements: []
128
+
129
+ rubyforge_project: xx
130
+ rubygems_version: 1.8.5
131
+ signing_key:
132
+ specification_version: 3
133
+ summary: a client-side, complete Github Widget.
134
+ test_files: []
135
+