Skip to content

Commit efbd36b

Browse files
Merge pull request phpbridge#39 from dshafik/merge-railsbridge
Merge railsbridge HEAD
2 parents 5fa395f + 834dde2 commit efbd36b

File tree

242 files changed

+3725
-1707
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+3725
-1707
lines changed

Gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ group :development do
1919
gem "rake"
2020
gem "rack-test"
2121
gem "files", "~> 0.3.0"
22-
gem "bourbon" # do 'cd public/css; bourbon update' to get new bourbon
2322
gem 'rb-fsevent', :platform => :ruby
2423
end
2524

Gemfile.lock

+12-22
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@ GEM
44
activesupport (3.2.17)
55
i18n (~> 0.6, >= 0.6.4)
66
multi_json (~> 1.0)
7-
bourbon (3.1.8)
8-
sass (>= 3.2.0)
9-
thor
107
celluloid (0.15.2)
118
timers (~> 1.1.0)
129
celluloid-io (0.15.0)
1310
celluloid (>= 0.15.0)
1411
nio4r (>= 0.5.0)
1512
coderay (1.1.0)
16-
columnize (0.3.6)
13+
columnize (0.8.9)
1714
daemons (1.1.9)
1815
debugger (1.6.6)
1916
columnize (>= 0.3.1)
@@ -35,37 +32,33 @@ GEM
3532
erector (0.9.0)
3633
treetop (>= 1.2.3)
3734
eventmachine (1.0.3)
38-
eventmachine (1.0.3-x86-mingw32)
3935
ffi (1.9.3)
40-
ffi (1.9.3-x86-mingw32)
4136
files (0.3.1)
4237
i18n (0.6.9)
4338
json (1.8.1)
44-
listen (2.7.0)
39+
listen (2.7.3)
4540
celluloid (>= 0.15.2)
4641
celluloid-io (>= 0.15.0)
4742
rb-fsevent (>= 0.9.3)
4843
rb-inotify (>= 0.9)
49-
mini_portile (0.5.2)
50-
multi_json (1.9.0)
44+
mini_portile (0.5.3)
45+
multi_json (1.9.3)
5146
nio4r (1.0.0)
5247
nokogiri (1.6.1)
5348
mini_portile (~> 0.5.0)
54-
nokogiri (1.6.1-x86-mingw32)
55-
mini_portile (~> 0.5.0)
5649
polyglot (0.3.4)
5750
predicated (0.2.6)
5851
rack (1.5.2)
5952
rack-codehighlighter (0.5.0)
6053
nokogiri (>= 1.4.1)
6154
rack (>= 1.0.0)
62-
rack-protection (1.5.2)
55+
rack-protection (1.5.3)
6356
rack
6457
rack-test (0.6.2)
6558
rack (>= 1.0)
66-
rake (10.1.1)
59+
rake (10.3.1)
6760
rb-fsevent (0.9.4)
68-
rb-inotify (0.9.3)
61+
rb-inotify (0.9.4)
6962
ffi (>= 0.5.0)
7063
redcarpet (2.3.0)
7164
rerun (0.9.0)
@@ -78,13 +71,13 @@ GEM
7871
rspec-expectations (2.14.5)
7972
diff-lcs (>= 1.1.3, < 2.0)
8073
rspec-mocks (2.14.6)
81-
ruby2ruby (2.0.7)
74+
ruby2ruby (2.1.0)
8275
ruby_parser (~> 3.1)
8376
sexp_processor (~> 4.0)
84-
ruby_parser (3.4.1)
77+
ruby_parser (3.6.0)
8578
sexp_processor (~> 4.1)
86-
sass (3.3.2)
87-
sexp_processor (4.4.1)
79+
sass (3.3.6)
80+
sexp_processor (4.4.3)
8881
sinatra (1.3.6)
8982
rack (~> 1.4)
9083
rack-protection (~> 1.3)
@@ -93,10 +86,9 @@ GEM
9386
daemons (>= 1.0.9)
9487
eventmachine (>= 1.0.0)
9588
rack (>= 1.0.0)
96-
thor (0.18.1)
9789
tilt (1.4.1)
9890
timers (1.1.0)
99-
treetop (1.5.1)
91+
treetop (1.5.3)
10092
polyglot (~> 0.3)
10193
trollop (2.0)
10294
wrong (0.7.1)
@@ -108,11 +100,9 @@ GEM
108100

109101
PLATFORMS
110102
ruby
111-
x86-mingw32
112103

113104
DEPENDENCIES
114105
activesupport (~> 3.2.0)
115-
bourbon
116106
coderay
117107
debugger
118108
deckrb (~> 0.5.2)

LICENSE.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
The documentation (including anything under the `sites` subdir as well as some hardcoded text elsewhere) is licensed under a Creative Commons license ([CC-BY, specifically](http://creativecommons.org/licenses/by/3.0/)), which means you're welcome to share, remix, or use our content commercially. We just ask for attribution.
2+
3+
You are free to:
4+
Share — copy and redistribute the material in any medium or format
5+
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
6+
The licensor cannot revoke these freedoms as long as you follow the license terms.
7+
8+
Under the following terms:
9+
Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
10+
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
11+
12+
Notices:
13+
You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.
14+
No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.
15+
16+
17+
Source code is under an [MIT License](http://opensource.org/licenses/MIT) (MIT):
18+
19+
Copyright (c) 2010-2014 by RailsBridge
20+
21+
Permission is hereby granted, free of charge, to any person obtaining a copy
22+
of this software and associated documentation files (the "Software"), to deal
23+
in the Software without restriction, including without limitation the rights
24+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25+
copies of the Software, and to permit persons to whom the Software is
26+
furnished to do so, subject to the following conditions:
27+
28+
The above copyright notice and this permission notice shall be included in
29+
all copies or substantial portions of the Software.
30+
31+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
37+
THE SOFTWARE.
38+
39+
40+

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PHPBridge by standing on their shoulders and building up.
1212

1313
This is a Sinatra app, deployed at <http://docs.railsbridge.org>. The PHPBridge documentation project is home to a few subprojects, including the PHPBridge installfest instructions, which leads students through the various complicated setup instructions for getting PHP, MySQL, Git, etc. installed on their computer (whatever combination of computer, OS, and version they happened to bring to the workshop!), as well as the PHPBridge workshop "Suggestotron" curriculum.
1414

15-
Each subproject (a "site") comprises files stored under the "sites" directory; for instance, the installfest instructions are located at ROOT/sites/installfest, while the intro PHP curriculum can be found under ROOT/sites/intro-to-php.
15+
Each subproject (a "site") comprises files stored under the "sites" directory; for instance, the installfest instructions are located at ROOT/sites/en/installfest, while the intro PHP curriculum can be found under ROOT/sites/en/intro-to-php.
1616

1717
These files can be in any of these formats:
1818

@@ -31,9 +31,18 @@ These files can be in any of these formats:
3131
If the above fails (say, because `rerun` doesn't work on your system), try
3232

3333
rackup
34-
34+
3535
Then open <http://localhost:9292> in a web browser, and verify that you can navigate the installfest slides.
3636

37+
## Locales
38+
39+
To serve sites from "sites/en", use `rake run` or a vanilla deploy.
40+
41+
To server sites from another locale (say, "es" or Spanish)...
42+
* Locally, use the SITE_LOCALE environment variable: `SITE_LOCALE=es rake run`
43+
* On a server, make the server respond to a locale subdomain: `http://es.railsbridge.org`
44+
* Or to temporarily test, use a `locale` or `l` parameter: `http://docs.railsbridge.org/?l=es` (note that in this mode, links are not rewritten, so if they fail you will have to manually add the parameter again)
45+
3746
## Contributing
3847

3948
Check out [CONTRIBUTING.md](CONTRIBUTING.md) to see how to join our [list of contributors](https://github.com/railsbridge/docs/contributors)!

Rakefile

+14-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
require 'rspec/core/rake_task'
2-
3-
task :default => :spec
4-
51
def windows?
62
Rake::Win32.windows?
73
end
84

9-
RSpec::Core::RakeTask.new(:spec) do |t|
10-
t.pattern = "spec/**/*_spec.rb"
11-
t.rspec_opts =
12-
"--format d --backtrace"
13-
t.rspec_opts += " --color" if !windows?
14-
# t.ruby_opts="-w"
5+
begin
6+
require 'rspec/core/rake_task'
7+
8+
task :default => :spec
9+
10+
desc "Run all specs"
11+
RSpec::Core::RakeTask.new(:spec) do |t|
12+
t.pattern = "spec/**/*_spec.rb"
13+
t.rspec_opts =
14+
"--format d"
15+
t.rspec_opts += " --color" if !windows?
16+
# t.ruby_opts="-w"
17+
end
18+
rescue LoadError # swallow Heroku deploy error
1519
end
1620

1721
def rerun cmd, rerun_opts = nil

0 commit comments

Comments
 (0)